本文整理汇总了C++中win::dow::Handle::Show方法的典型用法代码示例。如果您正苦于以下问题:C++ Handle::Show方法的具体用法?C++ Handle::Show怎么用?C++ Handle::Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类win::dow::Handle
的用法示例。
在下文中一共展示了Handle::Show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Main
int Win::Main (Win::Instance hInst, char const * cmdParam, int cmdShow)
{
try
{
TheOutput.Init ("Unit Test");
// Create top window class
Win::Class::TopMaker topWinClass ("UnitTestClass", hInst);
topWinClass.Register ();
// Create Window Controller (needs access to MessagePrepro)
Win::MessagePrepro msgPrepro;
TopCtrl ctrl;
// Create top window (hidden)
Win::TopMaker topWin ("Unit Test", "UnitTestClass", hInst);
Win::Dow::Handle appWin = topWin.Create (&ctrl);
appWin.Show (cmdShow);
// The main message loop
return msgPrepro.Pump ();
}
catch (Win::Exception e)
{
TheOutput.Display (e);
}
catch (...)
{
Win::ClearError ();
TheOutput.Display ("Internal error: Unknown exception", Out::Error);
}
return 0;
}
示例2: focusMaker
FocusBar::Ctrl * FocusBar::Use::MakeBarWindow (Win::Dow::Handle hwndParent,
unsigned id,
unsigned associatedId,
Focus::Ring & focusRing)
{
std::auto_ptr<FocusBar::Ctrl> newCtrl (new FocusBar::Ctrl (id, associatedId, focusRing));
Win::ChildMaker focusMaker (_className, hwndParent, id);
Win::Dow::Handle win = focusMaker.Create (newCtrl.get ());
FocusBar::Ctrl * ctrl = newCtrl.get ();
_ctrls.push_back (newCtrl);
win.Show ();
return ctrl;
}