|
-
Mar 7th, 2002, 10:30 AM
#1
Thread Starter
New Member
Dialog box manipulation...
Hi, I have a dialog box I designed with a "Picture Control" that has a picture in it. I want to know if there is a function or a message that will change what image is in the control. Is this possible?
-
Mar 7th, 2002, 12:21 PM
#2
Depending on what kind of control that is, you can look it up in the help.
Usually pictures are displayed in static controls. You can set the image of a static control with the STM_SETIMAGE message.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 7th, 2002, 06:08 PM
#3
Thread Starter
New Member
would something like this work?
SendMessage(hwnd,STM_SETIMAGE,IDC_IMAGE,IDB_MYIMAGE);
-
Mar 8th, 2002, 12:27 PM
#4
No, this would work:
SendDlgItemMessage(hDlg, IDC_IMAGE, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap);
You get the hBitmap from a previous call to LoadImage or LoadBitmap or other functions that return a HBITMAP.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 8th, 2002, 08:29 PM
#5
Thread Starter
New Member
ah thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|