Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: opening a dialog box Pin
Jon Hulatt22-Feb-02 8:06
Jon Hulatt22-Feb-02 8:06 
GeneralRe: opening a dialog box Pin
mr200322-Feb-02 11:48
mr200322-Feb-02 11:48 
GeneralThread Problems Pin
Jon Hulatt22-Feb-02 7:37
Jon Hulatt22-Feb-02 7:37 
GeneralRe: Thread Problems Pin
Paul M Watt23-Feb-02 16:10
mentorPaul M Watt23-Feb-02 16:10 
GeneralRe: Thread Problems Pin
Jon Hulatt24-Feb-02 21:56
Jon Hulatt24-Feb-02 21:56 
GeneralLoading bitmaps Pin
22-Feb-02 6:49
suss22-Feb-02 6:49 
GeneralRe: Loading bitmaps Pin
Not Active22-Feb-02 7:11
mentorNot Active22-Feb-02 7:11 
GeneralRe: Loading bitmaps Pin
Paul M Watt22-Feb-02 7:15
mentorPaul M Watt22-Feb-02 7:15 
You can either insert your bitmap into your resource file, associate the bitmap with the picture control at design time and the dialog will load the image for you.

Or you can Load the bitmap with LoadImage (LoadBitmap calls loadImage), then you can use the HBITMAP handle that you receive from LoadImage and send a STM_SETIMAGE message.

<br />
SendMessage( <br />
  (HWND) hWnd,              // handle to destination window <br />
  STM_SETIMAGE,             // message to send<br />
  (WPARAM) wParam,          // image type<br />
  (LPARAM) lParam          // handle to image (HANDLE)<br />
);<br />


Parameters
wParam
Specifies the type of image to associate with the static control. This parameter can be one of the following values:
IMAGE_BITMAP
IMAGE_CURSOR
IMAGE_ENHMETAFILE
IMAGE_ICON

Teh MFC equivalent is probably CStatic::SetImage
GeneralBroadcasting the command Pin
yellowine22-Feb-02 6:23
yellowine22-Feb-02 6:23 
GeneralRe: Broadcasting the command Pin
Tim Smith22-Feb-02 6:30
Tim Smith22-Feb-02 6:30 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
yellowine22-Feb-02 6:34
yellowine22-Feb-02 6:34 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
Tim Smith22-Feb-02 6:46
Tim Smith22-Feb-02 6:46 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
Nish Nishant22-Feb-02 9:18
sitebuilderNish Nishant22-Feb-02 9:18 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
yellowine22-Feb-02 10:35
yellowine22-Feb-02 10:35 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
pba_22-Feb-02 10:40
pba_22-Feb-02 10:40 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
yellowine22-Feb-02 10:42
yellowine22-Feb-02 10:42 
GeneralRe: Broadcasting the command: Problem with UpdateAllViews() Pin
pba_22-Feb-02 12:04
pba_22-Feb-02 12:04 
GeneralRe: Broadcasting the command Pin
22-Feb-02 7:00
suss22-Feb-02 7:00 
GeneralRe: Broadcasting the command Pin
yellowine22-Feb-02 10:36
yellowine22-Feb-02 10:36 
GeneralDeallocating Tree Control Data Pin
Aaron Schaefer22-Feb-02 6:17
Aaron Schaefer22-Feb-02 6:17 
GeneralRe: Deallocating Tree Control Data Pin
Tim Smith22-Feb-02 6:19
Tim Smith22-Feb-02 6:19 
GeneralRe: Deallocating Tree Control Data Pin
Aaron Schaefer22-Feb-02 6:20
Aaron Schaefer22-Feb-02 6:20 
GeneralRe: Deallocating Tree Control Data Pin
Tim Smith22-Feb-02 6:29
Tim Smith22-Feb-02 6:29 
GeneralRe: Deallocating Tree Control Data Pin
Aaron Schaefer22-Feb-02 6:30
Aaron Schaefer22-Feb-02 6:30 
GeneralCToolBar question... Pin
Jamie Hale22-Feb-02 5:19
Jamie Hale22-Feb-02 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.