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 » Scroll is not shown in CExtControlBar Collapse All
Subject Author Date
L Freddi Apr 16, 2009 - 7:42 PM

Hi,


I have a dialog  inherited CExtResizableDialog dialog in window inherited CExcontrolBar.


I want to add scrollbar in dialog and use scrollbar when the dialog is resizing.


I add WS_HSCROLL property in creating window but scroll is not shown.


Please help me.


======================================================================


CExtResizableDialog clsDlg;


CExcontrolBar clsDlgWnd;


if (!clsDlgWnd.Create(_T("Dialog"),

  this,

  ID_VIEW_PANEL_PTZ,

  WS_CHILD|WS_VISIBLE | WS_HSCROLL

  |CBRS_LEFT|CBRS_GRIPPER|CBRS_TOOLTIPS  |CBRS_FLYBY|CBRS_SIZE_DYNAMIC

  |CBRS_HIDE_INPLACE))

 {

  return FALSE;

 }


 if (!clsDlg.Create(IDD_DIALOG, &m_clsWnd))

 {

  return FALSE;

 }

===========================================================================

Technical Support Apr 17, 2009 - 10:14 AM

You can create a CExtScrollContainerWnd window as a child of the CExtControlBar window, then create your dialog window as a child of the CExtScrollContainerWnd window.