|
-
August 24th, 2004, 11:32 AM
#10
Re: Making buttons & edit/list boxes
Whether a window is user sizable or not is controlled by the window styles used when you create the window, etc. It sounds like you do not want a resizing border, and want to disable the maximize box so that the window is not resizable at all (by the user). Use the appriopriate window styles when you create the window and your window will not be user sizable.
i.e.
WS_CAPTION | WS_BORDER | WS_SYSMENU | WS_MINIMIZEBOX
As for scrolling the ListBox, you can send the WM_VSCROLL message to the ListBox window to scroll it manually.
i.e. (scroll ListBox to Bottom)
Code:
// where hwnd is HWND of the parent window of the ListBox,
// and IDC_LIST is the control id of the ListBox
SendDlgItemMessage(hwnd, IDC_LIST, WM_VSCROLL, (WPARAM)SB_BOTTOM, NULL);
See the documentation for the WM_VSCROLL message for more info.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|