Tutorial by Examples

This example shows how to manipulate button ideal size by specifying a fixed size. class ButtonSubclass { public: ButtonSubclass(HWND hWndButton) { SetWindowSubclass(hWndButton, MyButtonSubclassProc, 1, (DWORD_PTR) this); } ~ButtonSuclass() { RemoveWindowSubclass...
class MyToolbarControl { public: MyToolbarControl(HWND hWndToolbar, HWND hWndNotifyParent = nullptr) : _Handle(hWndToolbar) { if (hWndNotifyParent == nullptr) { hWndNotifyParent = GetAncestor(hWndToolbar, GA_ROOTOWNER); } SetWindowSubclass( ...

Page 1 of 1