Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!att!linac!uwm.edu!zaphod.mps.ohio-state.edu!wuarchive!emory!hubcap!lsalomo From: lsalomo@hubcap.clemson.edu (lsalomo) Newsgroups: comp.os.os2.programmer Subject: Re: Figuring out if I'm minimized? Message-ID: <13128@hubcap.clemson.edu> Date: 14 Feb 91 22:08:06 GMT References: <1991Feb14.203411.26290@eecs.wsu.edu> Organization: Clemson University, Clemson, SC Lines: 15 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