CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Posts
    181

    [RESOLVED] Why this code don't chage size of control?

    Code:
    	case WM_SIZE:
            SendMessage(hsb, WM_SIZE, 0, 0);
    		{RECT WindowRect;
            GetWindowRect(hwnd, &WindowRect);
    		int width = WindowRect.right-WindowRect.left;
    		SetWindowPos(hProgress, HWND_NOTOPMOST, 20, 150, width-20, 17, 0); 
    		break;}
    Progress bar saves previous state.

  2. #2
    Join Date
    Feb 2012
    Posts
    181

    Re: Why this code don't chage size of control?

    Hwnd_bottom

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

Featured