If i have a bitmap shown in a DLG, as shown in the RSRC:

2101 BITMAP DISCARDABLE "D:\\masm32\\_active\\LMan\\image.bmp"
2102 BITMAP DISCARDABLE "D:\\masm32\\_active\\LMan\\image2.bmp"

And DLG entry:

CONTROL 2101,3101,"Static",SS_BITMAP | SS_CENTERIMAGE | WS_BORDER,8,19,180,87

Is there a way, after the DLG is running to reassign the Bitmap from 2101 (Image) to 2102 (Image 2)??

I tried using the SetWindowText since this is the param being used for the "CONTROL" keyword. But it failed. I was hoping to be able to present different image through this DLG control, depending on user selections from other DLG entities...

:alright:
NaN
Posted on 2003-04-20 10:41:27 by NaN
SendDlgItemMessage(hWnd, ID_BITMAPCONTROL, STM_SETIMAGE, IMAGE_BITMAP, 2102) ?

Thomas
Posted on 2003-04-20 11:05:55 by Thomas
Thanks Thomas... I dont play with DLG resources much, but I've been discovering their benifits lately.

:alright:
NaN
Posted on 2003-04-20 17:58:03 by NaN