scrollbar api32

hallo c puls plus (ers)
the scrollbar wand moves the value.

do i need to set a int ?





 
HWND Scrollbar = CreateWindow(TEXT("scrollbar"), NULL, WS_CHILD | WS_VISIBLE | WS_TABSTOP | SB_VERT, 100,20 , 30, 100, hwnd, (HMENU)NULL, NULL, NULL);
Last edited on
Here's a quick tutorial for both vertical and horizontal scrollbars.
https://learn.microsoft.com/en-us/windows/win32/controls/create-scroll-bars
Last edited on
he newbieg,

i used the example form the link but the SCROLLBAR
still flips in the first poison wen i put in on the window.
and try to move the value of the bar

1
2
3
4
5
6
7
8
9
10
11
12
13
14
	HWND SCR_BR01 = CreateWindowEx(
		0,                      // no extended styles 
		L"SCROLLBAR",           // scroll bar control class 
		(PTSTR)NULL,           // no window text 
		WS_CHILD | WS_VISIBLE   // window styles  
		| SBS_HORZ,         // horizontal scroll bar style 
		200,              // horizontal position 
		50, // vertical position 
		150,             // width of the scroll bar 
		100,               // height of the scroll bar
		hwnd,             // handle to main window 
		(HMENU)NULL,           // no menu 
		NULL,                // instance owning this window 
		(PVOID)NULL            // pointer not needed  

Last edited on
Topic archived. No new replies allowed.