Zadowolony Pesymista
Zadowolony Pesymista

Reputation: 73

How to set a dynamic menu in window class in win32?

Wndclass requires a menu with lpsz type. It can be assigned using resources - for example makeIntResource(). How can I assign a menu created using createMenu()? It returns HMENU.

Upvotes: 1

Views: 271

Answers (1)

gonutz
gonutz

Reputation: 5582

Call SetMenu and pass it your HWND and HMENU.

Upvotes: 1

Related Questions