How do I hide/disable horizontal scrollbar in an Infragistics Ultrawingrd control?
Thanks.
ultraGrid1.DisplayLayout.Scrollbars = Scrollbars.None;
see this article
Related
I'm porting a MFC application to use the Ribbon UI and MFC feature pack and would like to have a docked horizontal pane that does not include a caption. I'd hope that something like
MyPane.ModifyStyle(WS_CAPTION, 0);
m_pParentFrame->RecalcLayout();
would work, but no joy. FWIW, the docking pane is hosting a wide horizontal dialog docked under the main view and the caption wastes more desktop real estate than I'd like to give away.
Edit: Further googling found a possible solution here: http://www.sibisa.com/remove-hide-title-bar-board-cdockablepane-window/
Edit2: EnableGripper(FALSE) was what was needed, see https://msdn.microsoft.com/en-us/library/bb984118.aspx
Calling EnableGripper(FALSE) removes the caption.
I managed to get a toolbar on the top if a cdockablepane window but not on the bottom.
Does anyone have a sample of how to do this ?
Tia.
Use EnableDocking
m_wndTool1AtTop.EnableDocking(CBRS_ALIGN_ANY);
DockPane(&m_wndTool1AtTop);
m_wndTool2AtBottom.EnableDocking(CBRS_ALIGN_BOTTOM);
DockPane(&m_wndTool2AtBottom);
m_wndTool2AtBottom.EnableDocking(CBRS_ALIGN_ANY);
I have a CListCtrl in "List" view mode and I can't get it to scroll vertically instead of horizontally.
I've tried the suggesting here: Vertical Scrollbar in CListCtrl but that only works when using the icon view mode. It doesn't work in list mode.
So, how can I get my CListCtrl in list view mode to scroll vertically?
Have you tried this?
"Change the Alignment style in designer from Left to Top."
Vertical Scrollbar in CListCtrl
I have an application which has Propertysheet dialog box with PropertyPage and dialogbox has three button at the bottom.
PropertySheet and PropertyPage create using MFC CProperySheet and CpropertyPage.
Dialog box display fine in windows xp but in windows 7 its partially cut three button
Please Help me to resolve this problem
It's probably due to the font size being something other than default size (check the DPI in the Display properties). If you're manually sizing the property sheet you'll need to be aware that the dialog units will be multiplied by a factor to calculate the size for a given DPI.
Let me clarify:
Are you embedding property sheet in a dialog?
If yes:
Is there any reason to do so?
The buttons you mention belong to a dialog or property sheet?
Are you resizing property sheet?
If buttons belong to the dialog are they cut by the bottom of the dialog?
The best if you post a snapshot of the dialog from XP and 7.
Is it possible to add a tooltip to a CStatic control in Visual C++6? How?
Sure, you can use a CToolTipCtrl in order to add tooltips to any part of your window, dialog or control.