本文整理汇总了C++中MCStack::getw方法的典型用法代码示例。如果您正苦于以下问题:C++ MCStack::getw方法的具体用法?C++ MCStack::getw怎么用?C++ MCStack::getw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MCStack
的用法示例。
在下文中一共展示了MCStack::getw方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sethints
void MCStack::sethints()
{
if (!opened || MCnoui || window == DNULL)
return;
MCStack *sptr = MCdefaultstackptr == this ? MCtopstackptr : MCdefaultstackptr;
if (sptr != NULL && sptr != this && sptr->getw() != DNULL
&& GetWindowLongA((HWND)window->handle.window, 0) == 0)
SetWindowLongA((HWND)window->handle.window, 0, (LONG)sptr->getw()->handle.window);
}
示例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)
{
// 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);
}
示例3: sethints
void MCStack::sethints()
{
if (!opened || MCnoui || window == DNULL)
return;
if (flags & F_RESIZABLE)
{
rect.width = MCU_max(minwidth, rect.width);
rect.width = MCU_min(maxwidth, rect.width);
rect.height = MCU_max(minheight, rect.height);
rect.height = MCU_min(maxheight, rect.height);
}
MCStack *sptr = MCdefaultstackptr == this ? MCtopstackptr : MCdefaultstackptr;
if (sptr != NULL && sptr != this && sptr->getw() != DNULL
&& GetWindowLongA((HWND)window->handle.window, 0) == 0)
SetWindowLongA((HWND)window->handle.window, 0, (LONG)sptr->getw()->handle.window);
}
示例4: 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);
}