wbonner@eecs.wsu.edu (Wim Bonner) (02/15/91)
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 |
lsalomo@hubcap.clemson.edu (lsalomo) (02/15/91)
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