home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1715 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!wsu-cs!vela!bcmatusz
  3. From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
  4. Subject: Using a dialog as main window ...
  5. Message-ID: <1992Sep7.221616.8105@vela.acs.oakland.edu>
  6. Organization: Oakland University, Rochester MI.
  7. Date: Mon, 7 Sep 1992 22:16:16 GMT
  8. Lines: 30
  9.  
  10. I'm posting this for a friend who's UseNet feed is temporarily out
  11. of order ...
  12.  
  13. ------------------------------------------------------------
  14.  
  15. I am  writing a program with Borland C++ 3.0 that uses a Borland
  16. Dialog (call BorDlg) as it's main window.  I have included a minimize
  17. button on the dialog (as it's a main window), and it minimizes fine.
  18. What I want to do is draw the icon in the upper corner of the dialog
  19. when it is minimized and remove it when un-minimized.  Is that the
  20. proper technique, and what's the best way to do it?  I tried something
  21. like this before and got nowhere with it.
  22.  
  23. The way I think would be best is to capture the WM_SIZE message, and when
  24. it's becoming iconic, paint, and when not, leave it alone.  What are
  25. the pros and cons of doing this?  Would I place a window of type
  26. "static bitmap" on the corner and kill it when the window is
  27. restored?  I'm not sure just painting it is the answer, as this is what
  28. I tried before and got nowhere.
  29.  
  30. PLEASE ... reply with the address below.  Not the followup address, and
  31. not the UseNet, because my feed is down ... this is posted from a friend's
  32. account.
  33.  
  34. Thanks!
  35.  
  36. Brad Wilson
  37. 99999w02@cps201.cps.cmich.edu
  38. uunet!cps201.cps.cmich.edu!99999w02
  39.  
  40.