Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Disable moving and resizing of a floating window Collapse All
Subject Author Date
Chun Pong Lau Aug 22, 2013 - 11:43 PM

Dear support team,

Can you please advise how to disable a floating window from moving or resizing?

Thanks a lot.

Best regards,
Chun Pong

Chun Pong Lau Aug 24, 2013 - 7:21 AM

Reply

Sorry, what I mean was not about resizing or hiding a window. I was asking how to DISABLE users from resizing and moving a FLOATING CONTROL BAR. E.g. By intercepting the windows message of WM_MOVE or WM_SIZE, or overriding some legacy functions. Thanks. Can you give us a hint?

Chun Pong Lau Aug 23, 2013 - 3:48 PM

Sorry, what I mean was not about resizing or hiding a window. I was asking how to DISABLE users from resizing and moving a FLOATING CONTROL BAR. E.g. By intercepting the windows message of WM_MOVE or WM_SIZE, or overriding some legacy functions. Thanks.

Art Wilkes Aug 23, 2013 - 9:12 AM

I just use



In this instance I got the size of the current grid window and moved it left and down. to fit below


the menu and toolbar.


GetDlgItem(IDC_GRID)->MoveWindow(rect.left+15,rect.top+64,rect.Width(),rect.Height()+10);



 


For hiding a window I use this function.  This hides a test button.



m_btnTest.ShowWindow(SW_HIDE);



 


Prof-UIS Support

Chun Pong Lau Aug 24, 2013 - 7:28 AM


Sorry, what I mean was not about resizing or hiding a window. I was asking how to DISABLE users from resizing and moving a FLOATING CONTROL BAR. E.g. By intercepting the windows message of WM_MOVE or WM_SIZE, or overriding some legacy functions. Thanks. Can you give us a hint?