本文整理汇总了C++中MCStack::getrealmode方法的典型用法代码示例。如果您正苦于以下问题:C++ MCStack::getrealmode方法的具体用法?C++ MCStack::getrealmode怎么用?C++ MCStack::getrealmode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MCStack
的用法示例。
在下文中一共展示了MCStack::getrealmode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: hidepalettes
void MCStacklist::hidepalettes(Boolean hide)
{
active = !hide;
if (stacks == NULL)
return;
MCStacknode *tptr = stacks;
// only hide palettes if a non-palette is open
Boolean dohide = False;
do
{
MCStack *sptr = tptr->getstack();
if (sptr->getrealmode() < WM_PALETTE)
{
dohide = True;
break;
}
tptr = tptr->next();
}
while (tptr != stacks);
if (!dohide)
return;
restart = False;
tptr = stacks;
do
{
MCStack *sptr = tptr->getstack();
if (sptr->getrealmode() == WM_PALETTE && sptr->getflag(F_VISIBLE))
if (MChidepalettes)
{
// Show the window non-active (to avoid messing with the focus),
// then send a synthetic activate event to force a title-bar redraw
ShowWindow((HWND)sptr->getw()->handle.window, hide ? SW_HIDE : SW_SHOWNA);
PostMessageA((HWND)sptr->getw()->handle.window, WM_NCACTIVATE, 1, 0);
// When closing or opening a window, Win32 delivers messages that can
// change stack list, and we need to start over if this happened
if (restart)
{
hidepalettes(hide);
return;
}
}
else if (sptr->getw() != NULL)
{
// OK-2007-04-19: Bug 4728, When hiding a palette with a windowShape
// sptr->getw() can return null, causing crash here.
PostMessageA((HWND)sptr->getw()->handle.window, WM_NCACTIVATE, !hide, 0);
}
tptr = tptr->next();
}
while (tptr != stacks);
}
示例2: hidepalettes
void MCStacklist::hidepalettes(Boolean hide)
{
active = !hide;
if (stacks == NULL)
return;
MCStacknode *tptr = stacks;
// only hide palettes if a non-palette is open
Boolean dohide = False;
do
{
MCStack *sptr = tptr->getstack();
if (sptr->getrealmode() < WM_PALETTE)
{
dohide = True;
break;
}
tptr = tptr->next();
}
while (tptr != stacks);
if (!dohide)
return;
restart = False;
tptr = stacks;
do
{
MCStack *sptr = tptr->getstack();
if (sptr->getrealmode() == WM_PALETTE && sptr->getflag(F_VISIBLE))
if (MChidepalettes)
{
if (hide)
MCscreen->closewindow(sptr->getw());
else
sptr -> openwindow(False);
}
tptr = tptr->next();
}
while (tptr != stacks);
}