bue, no logro cargar un icono al Dialogo, osea estoy usando este code:
Código
HICON icon; //....... //on WinMain icon = LoadIcon(hInst, "1"); // On DialogProc - WM_INITDIALOG SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)icon );
bue este es el rc del dialogo donde intento cargarlo:
Código
102 DIALOGEX 0, 0, 331, 222 STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN PUSHBUTTON "",3,166,201,50,14,WS_GROUP PUSHBUTTON "",1,216,201,50,14 PUSHBUTTON "",2,273,201,50,14 CONTROL "",1018,"Static",SS_BLACKRECT | NOT WS_VISIBLE | WS_GROUP,15,45,300,140 CONTROL "",1044,"Static",SS_BLACKRECT | NOT WS_VISIBLE | WS_GROUP,0,0,331,193 CONTROL "",1035,"Static",SS_ETCHEDHORZ | WS_GROUP,5,193,321,1 CONTROL "",1036,"Static",SS_ETCHEDHORZ | WS_GROUP,0,35,340,1 CONTROL "",1045,"Static",SS_ETCHEDHORZ | NOT WS_VISIBLE | WS_GROUP,0,193,340,1 LTEXT "",1256,5,188,322,8 LTEXT "",1028,5,188,322,8,WS_DISABLED LTEXT "",1034,0,0,332,35 LTEXT "",1037,105,5,215,10 LTEXT "",1038,110,16,210,16 CONTROL "",1046,"Static",SS_BITMAP,0,0,100,35 END
pero si lo carga en el taskbar....
Editado:
ya encontre donde estaba el error
Código
me olvide de poner el MAKEINTRESOURCE
icon = LoadIcon(hInst, MAKEINTRESOURCE(1));