home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!wsu-cs!vela!bcmatusz
- From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
- Subject: Using a dialog as main window ...
- Message-ID: <1992Sep7.221616.8105@vela.acs.oakland.edu>
- Organization: Oakland University, Rochester MI.
- Date: Mon, 7 Sep 1992 22:16:16 GMT
- Lines: 30
-
- I'm posting this for a friend who's UseNet feed is temporarily out
- of order ...
-
- ------------------------------------------------------------
-
- I am writing a program with Borland C++ 3.0 that uses a Borland
- Dialog (call BorDlg) as it's main window. I have included a minimize
- button on the dialog (as it's a main window), and it minimizes fine.
- What I want to do is draw the icon in the upper corner of the dialog
- when it is minimized and remove it when un-minimized. Is that the
- proper technique, and what's the best way to do it? I tried something
- like this before and got nowhere with it.
-
- The way I think would be best is to capture the WM_SIZE message, and when
- it's becoming iconic, paint, and when not, leave it alone. What are
- the pros and cons of doing this? Would I place a window of type
- "static bitmap" on the corner and kill it when the window is
- restored? I'm not sure just painting it is the answer, as this is what
- I tried before and got nowhere.
-
- PLEASE ... reply with the address below. Not the followup address, and
- not the UseNet, because my feed is down ... this is posted from a friend's
- account.
-
- Thanks!
-
- Brad Wilson
- 99999w02@cps201.cps.cmich.edu
- uunet!cps201.cps.cmich.edu!99999w02
-
-