Thread View: comp.os.os2.programmer
2 messages
2 total messages
Started by Wim Bonner
Thu, 14 Feb 1991 20:34
Figuring out if I'm minimized?
Author: Wim Bonner
Date: Thu, 14 Feb 1991 20:34
Date: Thu, 14 Feb 1991 20:34
18 lines
1225 bytes
1225 bytes
I'm still having problems with a dialog box coming up when I'm minimized.
I don't want it to come up if I'm minimized. The following fragment runs
off a WM_TIMER case as one of the things that gets checked at a specified
interval. I don't want the dialog box to pop up if I'm minimized, but it
seems to come up anyway. Can someone tell me how to make it right?
ulStyle = WS_MINIMIZED;
ulStyle &= WinQueryWindowULong(hwnd,QWL_STYLE);
if ((ulStyle != WS_MINIMIZED) && (ShowControls == TRUE))
{
ShowControls = FALSE;
WinDlgBox(hwnd, hwnd, PlayerDlgProc, (HMODULE) NULL, DFA_PlayerControl, NULL);
}
--
| wbonner@yoda.eecs.wsu.edu |
| 27313853@wsuvm1.csc.wsu.edu |
| 27313853@Wsuvm1.BITNET |
| 72561.3135@CompuServe.com |
Re: Figuring out if I'm minimized?
Author: lsalomo
Date: Thu, 14 Feb 1991 22:08
Date: Thu, 14 Feb 1991 22:08
15 lines
1098 bytes
1098 bytes
From article <1991Feb14.203411.26290@eecs.wsu.edu>, by wbonner@eecs.wsu.edu (Wim Bonner):
> ulStyle = WS_MINIMIZED;
> ulStyle &= WinQueryWindowULong(hwnd,QWL_STYLE);
> if ((ulStyle != WS_MINIMIZED) && (ShowControls == TRUE))
> {
> ShowControls = FALSE;
> WinDlgBox(hwnd, hwnd, PlayerDlgProc, (HMODULE) NULL, DFA_PlayerControl, NULL);
> }
This seems like a roundabout way of checking for minimize, but it LOOKS
correct. Are you sure that ShowControls==TRUE? Have you tried CodeView-ing
it to watch the control flow (i.e. maybe your WinDlgBox call is failing?)?
Cheers,
Q
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads