[RESOLVED] Why this code don't chage size of control?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

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

Hybrid View

  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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center