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
Posted on 2001-02-10 08:59:00 by 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
Posted on 2001-02-10 19:13:00 by Vom-bonjour:-()
This is one way.

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
Ewayne This message was edited by Ewayne, on 2/11/2001 1:38:37 AM
Posted on 2001-02-11 01:37:00 by Ewayne
Hey thx. that worked great for me :)
Posted on 2001-02-11 04:53:00 by CyBerian