Progress bar being resized
-
Hi, I have this code to draw a progress bar at run time, but I dont' want the user to resize it. So is there any way by which I could restrict the user from resizing it. CProgressCtrl m_ProgressBar; m_ProgressBar.Create(WS_CHILD|WS_VISIBLE|WS_THICKFRAME , CRect(10,rectWnd.top + headerHeight+55,window.Width()-2*10,20), (CWnd *)this, IDC_PROGRESSBAR); I think will have to add some WS_ option but don't know exactly. Thanks, PJ
-
Hi, I have this code to draw a progress bar at run time, but I dont' want the user to resize it. So is there any way by which I could restrict the user from resizing it. CProgressCtrl m_ProgressBar; m_ProgressBar.Create(WS_CHILD|WS_VISIBLE|WS_THICKFRAME , CRect(10,rectWnd.top + headerHeight+55,window.Width()-2*10,20), (CWnd *)this, IDC_PROGRESSBAR); I think will have to add some WS_ option but don't know exactly. Thanks, PJ
Unless I'm missing something here, controls are not normally resizeable at runtime.
"Take only what you need and leave the land as you found it." - Native American Proverb
-
Unless I'm missing something here, controls are not normally resizeable at runtime.
"Take only what you need and leave the land as you found it." - Native American Proverb
-
But I draw other controls like button, edit box, group box, They are not resizable.. Thanks,
PrashantJ wrote:
But I draw other controls like button, edit box, group box, They are not resizable..
My point exactly.
"Take only what you need and leave the land as you found it." - Native American Proverb
-
Hi, I have this code to draw a progress bar at run time, but I dont' want the user to resize it. So is there any way by which I could restrict the user from resizing it. CProgressCtrl m_ProgressBar; m_ProgressBar.Create(WS_CHILD|WS_VISIBLE|WS_THICKFRAME , CRect(10,rectWnd.top + headerHeight+55,window.Width()-2*10,20), (CWnd *)this, IDC_PROGRESSBAR); I think will have to add some WS_ option but don't know exactly. Thanks, PJ
-
Remove the WS_THICKFRAME style. Good luck. Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193