Results 1 to 2 of 2

Thread: Using WM_GETMINMAXINFO to constrain window size using SmartSubclass

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    7

    Question Using WM_GETMINMAXINFO to constrain window size using SmartSubclass

    I want to use the window message WM_GETMINMAXINFO to limit the movement of the window tracking border.

    I can do that by the method listed in microsoft knowledge base at:

    http://support.microsoft.com/kb/185733

    but in this code I must do the whole subclassing

    I want to do that using the SmartSubclass library

    it is a very smart, simple and really professional tool for subclassing, binary and source at:

    http://www.visual-basic.com.ar/vbsma...rtsubclass.htm

    the problem here is that:
    By using smartsubclass, I can only change the ptMaxTrackSize, but I cannot change ptMinTrackSize

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Using WM_GETMINMAXINFO to constrain window size using SmartSubclass

    Aside from the ability to crash your code without crashing the IDE, why not just write the code to do the subclassing yourself? (Or modify the class?)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width