DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Window Subclassing

  1. #1
    Anthony Lucidi Guest

    Window Subclassing


    I need the ability to capture the windows message notifying a form to maiximize
    when the user clicks on the form in the status bar. I already have the subclassing
    routine I just can't figure out what message to trap.

  2. #2
    Mattias Sjögren Guest

    Re: Window Subclassing

    Anthony,

    >I need the ability to capture the windows message notifying a form to maiximize
    >when the user clicks on the form in the status bar.


    Do you want to prevent the window from being restored? Then you should
    handle the WM_QUERYOPEN message.

    If it's something else you want to do, you should probably look for
    WM_WINDOWPOSCHANGING or WM_WINDOWPOSCHANGED.


    Mattias

    ____________________________________________
    Mattias Sjögren - mattiass @ hem.passagen.se
    http://hem.spray.se/mattias.sjogren/
    Docendo discimus

  3. #3
    Mattias Sjögren Guest

    Re: Window Subclassing

    Anthony,

    >I need the ability to capture the windows message notifying a form to maiximize
    >when the user clicks on the form in the status bar.


    Do you want to prevent the window from being restored? Then you should
    handle the WM_QUERYOPEN message.

    If it's something else you want to do, you should probably look for
    WM_WINDOWPOSCHANGING or WM_WINDOWPOSCHANGED.


    Mattias

    ____________________________________________
    Mattias Sjögren - mattiass @ hem.passagen.se
    http://hem.spray.se/mattias.sjogren/
    Docendo discimus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center