AnsweredAssumed Answered

VRF - Counting VEE windows on a Windows platform & sundry other stuff

Question asked by VRFuser on Feb 19, 1999
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META content='"MSHTML 4.72.3110.7"' name=GENERATOR></HEAD><BODY bgColor=#ffffff><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>Fun stuff to do with the VEE Window Enumerator:</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>Close all VEE windows, even the program explorer, and click the run button. Open main and probe the line to the logging alphanumeric. Note the number of records in the array. Then click the run button with main open. Again check the number of records in the resultant array. Try to reconcile the difference with the number of windows on the screen. Open the Demo function, go back to main and click run again. Now you can see the CtlFrameWork_ReflectWindow (the ActiveX control container) and the control itself (the default case is a TreeViewWndClass). Now check the number of records. Try to reconcile that with the number of windows in the Demo function. Wait! Close the demo function again and run the program. Where's the ActiveX control?</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>There are subtle clues here to how VEE manages it's views and what VEE connects with Windows windows and what it doesn't. Have fun with it.</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>Next, include the PostMessage function in the User32.h file. The prototype is:</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>int PostMessageA(int hWnd, int uMsg, int wParam, int lParam);</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>Try sending WM_CLOSE (16) to the VEE main window. Save your changes first! For some real fun, include the ExitWindowsEx function in User32.h:</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2>int ExitWindowsEx(int uFlags, int dwReserved);</FONT></SPAN></DIV><DIV><SPAN class=467070523-19021999><FONT color=#000000 face=Arial size=2></FONT></SPAN> </DIV><DIV> </DIV><P><FONT color=#000000 face=Arial size=2>Shawn Fessenden</FONT> <BR><FONT color=#000000 face=Arial size=2>Mgr., Technical Support</FONT> <BR><FONT color=#000000 face=Arial size=2>Oswego Software, Inc.</FONT> <BR><FONT color=#000000 face=Arial size=2><A href="mailto:shawn@oswegosw.com" target=_blank>mailto:shawn@oswegosw.com</A></FONT> <BR><FONT color=#000000 face=Arial size=2><A href="http://www.oswegosw.com" target=_blank>http://www.oswegosw.com</A></FONT> </P><DIV> </DIV></BODY></HTML>  

Outcomes