Hello everyone!
I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.
I have a popup menu, with submenu. The submenu's item should have push button instead of text.
That is pretty much it.
Should I owner draw it?
If so, some code example/ pseudo-code / instructions / tutorials / links ... would be welcome.
UPDATE #2:
***************************************************************************************
How can I create a simple push button in WM_DRAWITEM ?
I have tried with following code:
LPDRAWITEMSTRUCT lpDIS = (LPDRAWITEMSTRUCT)lParam;
HWND btnOk = CreateWindowEx(0,L"Button",L"test", WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, lpDIS->rcItem.left + 10, lpDIS->rcItem.top + 10,
lpDIS->rcItem.right - lpDIS->rcItem.left - 20,
lpDIS->rcItem.bottom - lpDIS->rcItem.top - 20,
hwnd, NULL, hInst, 0);
I don't know what to pass to CreateWindowEx() as parameter for parent window.
The button displays properly as a child window ( no border ), and its dimensions are good, but it is a child of the main window, not menu item.
How can I make it a part of the menu item ?
This is the only thing left.
Somebody please help me with some instructions or code examples or whatever...
Thank you.
*******************************************************************************************
UPDATE #3:
Is it possible that nobody knows how to create menu item with a simple push button in it?
Somebody help me please, I've been trying to do this on my own without success for nearly a month...
I am getting desperate.
********************************************************************************************
I work in MS Visual Studio Express 2008, on Windows XP, in C++, using pure WIN32 API.
If any other information is required ( source code or something similar ), please ask for it, I will more than gladly supply it.