1
votes

Can anyone give me an example code for a tool window (with pixel dimensions) for the Win32 API?

Thanks

1
you can find this on msdn easily, search first, ask later :)Dzung Nguyen

1 Answers

2
votes

Tool windows are just windows with the WS_EX_TOOLWINDOW extended style:

hWnd = CreateWindowEx(WS_EX_TOOLWINDOW, szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, 100, 100, 500, 400, NULL, NULL, hInstance, NULL);

Note you need to use CreateWindow*Ex* to use extended styles. The above is a 500x400 window at 100,100 on the screen.