Reputation: 7131
Can anyone give me an example code for a tool window (with pixel dimensions) for the Win32 API?
Thanks
Upvotes: 2
Views: 2485
Reputation: 7160
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.
Upvotes: 2