home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3501 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.8 KB

  1. Path: sparky!uunet!gumby!destroyer!gatech!prism!gt2438b
  2. From: gt2438b@prism.gatech.EDU (ShadowBoxer)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Visual Basic questions
  5. Summary: Answer question 3.
  6. Message-ID: <75186@hydra.gatech.EDU>
  7. Date: 18 Nov 92 01:40:54 GMT
  8. References: <92322.092615SASTPH@vm.sas.com>
  9. Organization: Georgia Tech, The real University of Georgia
  10. Lines: 32
  11.  
  12. In article <92322.092615SASTPH@vm.sas.com>, SASTPH@vm.sas.com writes:
  13. > Well, I thought I'd try converting a small Windows app written in C to
  14. > Visual Basic 1.0, but it appears I can't.  Here's some things I that
  15. > apparently can't be done in VB, or that I can't find in the doc:
  16.  
  17. > 2.  Send messages between forms.  My app uses three windows.   Clicking
  18. >     on a control in the main window causes immediate changes to the
  19. >     other two windows.
  20.  
  21. One way is to make a control, change the visible property to false, and use it's event procedures to transmit the message.
  22.  
  23. For example, a hidden textbox can be used.  Then the Text1_Change event sub
  24.  can be used to interpet the message.  (The last thing it should to is
  25.  empty itself.)
  26.  
  27. > 3.  Detect when the form is iconized. My app draws on its icon, which
  28. >     I understand can be done in Visual Basic, but when?  In C I just
  29. >     call IsIconic() whenever I get a WM_PAINT message and paint the
  30. >     icon when it (IsIconic) returns TRUE.  While I'm aware that I
  31. >     can call IsIconic from VB, surely I don't need to for such a
  32. >     simple thing?
  33.  
  34. The property Form.WindowState gives this information.  (0 = Normal,
  35.  1 = Minimized {iconic}, 2 = Maximized.)
  36.  
  37. Jon.
  38.  
  39. -- 
  40. SAGER,JON EDWARD (ShadowBoxer)     |  Happy, Happy, Joy, Joy, Happy, Happy,
  41. Internet: gt2438b@prism.gatech.edu |    Joy, Joy, Happy, Happy, Joy, Joy, Joy! 
  42. Georgia Tech- The real University  | 
  43.           of Georgia           |           -Ren and Stimpy 
  44.