WM_SIZING Probelm in my application

This is a discussion on WM_SIZING Probelm in my application within the Windows Programming forums, part of the Platform Specific Boards category; Hi people, I am doing a project for my college. I am doing the UI part using Win32 Api. I ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    15

    WM_SIZING Probelm in my application

    Hi people,
    I am doing a project for my college. I am doing the UI part using Win32 Api. I am learing wuite a lot from

    various tutorials available on the net. I am through with most of the GUI but only get stuck when resizing of

    controls is required. I have made a couple of mistakes and would like someone to help me out. I am putting my

    code in the following site;Everything is in the Main.cpp file.

    http://www.geocities.com/kalamirch/SislProject_tabs.zip


    Its not going to be something major to program dude. Its only when I use the Show/ Hide Toolbar and Status bar

    from the View Menu that I get WM_SIZING Probelms. I am not able to handle them efficiently . Please help me

    carry out this. Its just the WM_SIZING in the project. I wuold be very thank full. I am ready to return back

    whatever help if necessary. I have a collectio of Win32 Ebooks and would love o share them with you guys too.

    Thanks in Advance..

  2. #2
    Registered User
    Join Date
    May 2005
    Posts
    28
    What exactly is happening when you receive the WM_SIZING message? What are you trying to do?

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The message the OP is referring to is actually WM_SIZE, not WM_SIZING.

    When sizing child controls in response to parent WM_SIZE messages you need to know the dimensions of the parent (provided by WM_SIZE), the visibility of the child controls (see IsWindowVisible) and, usually, the dimensions of those child controls. Because the visibility of your toolbar and statusbar change, you should take into account their dimensions when resizing your tab control on the parent's client area; using absolute values when you resize the tab control with MoveWindow is causing the problem.

    In future, could you please just post the code you think is problematic with an accurate a description of the problem as you can give?
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cleanup of the application...
    By Petike in forum Windows Programming
    Replies: 1
    Last Post: 08-16-2008, 05:23 PM
  2. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  3. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 03:33 AM
  4. Win application not very portable
    By swed in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2001, 11:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21