Thread Winapi, MFC oder doch das gute alte Perl/Tk :) (17 answers)
Opened by Robby at 2003-11-19 15:54

esskar
 2003-11-19 16:53
#13204 #13204
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
HWND controlhwnd = handle zu einem editcontrol

bitmappath = "icons/exit.bmp";
hBmp_Install = LoadBitmapFile(bitmap.c_str());

mii.fMask = MIIM_TYPE | MIIM_ID | MIIM_DATA;
mii.fType = MFT_OWNERDRAW;
mii.wID = IDM_EXIT;
mii.dwItemData = ( ULONG_PTR)controlhwnd;
InsertMenuItem (hpopup, IDM_EXIT, TRUE, &mii);
SetMenuItemBitmaps(hpopup, IDM_EXIT, TRUE, hBmp_Install, hBmp_Install);


so ungefähr...

View full thread Winapi, MFC oder doch das gute alte Perl/Tk :)