Hi everybody Can anybody of you guys tell me how to create a Dialog within a resource with a picturebox (and and a bitmap in it) on the dialog form. thx. a lot CyBerian
Hi CyBerian, I don't think you can set a bitmap directly in the rc file, you must call loadbitmap in the code (WM_CREATE or WM_INITDIALOG). Vom-bonjour:-() PS:sorry for not having answered to your mail
This is one way.
Ewayne This message was edited by Ewayne, on 2/11/2001 1:38:37 AM
134 BITMAP DISCARDABLE "Argyle.bmp" TESTDLG DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 0, 0, 211, 118 STYLE DS_3DLOOK | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_EX_CLIENTEDGE CAPTION "Test Program" EXSTYLE WS_EX_WINDOWEDGE FONT 8, "Tahoma" BEGIN CONTROL 134, 104, "static", SS_BITMAP | SS_REALSIZEIMAGE | SS_REALSIZEIMAGE | SS_NOTIFY | SS_SUNKEN, 2, 1, 25, 63 DEFPUSHBUTTON "Cancel", IDCANCEL, 168, 100, 35, 12 END
Hey thx. that worked great for me :)