I'm having a problem getting graphic copy to work. I'm copying from a DDT graphic control to a bitmap created with GRAPHIC BITMAP NEW. This is in a little drawing program to create a revert point. When I copy it back I get a black graphic control.
I created both the control and the bitmap 500x500. I'm using pixels, not graphic units. Here's the code for the "hold" and "revert" buttons:
I have a picture in the control when I press the hold button. When I press the revert button the control turns black.
Does anyone have any idea what's going on? Any suggestions will be most appreciated and just might save some of what little hair I have left.
Thanks,
Barry
I created both the control and the bitmap 500x500. I'm using pixels, not graphic units. Here's the code for the "hold" and "revert" buttons:
Code:
CASE %BTN_HOLD CONTROL HANDLE hDlg, %IDC_GRAPHIC1 TO hCtl GRAPHIC ATTACH hDlg, hBmpRevert GRAPHIC COPY hCtl, %IDC_GRAPHIC1 GRAPHIC ATTACH hDlg, %IDC_GRAPHIC1 CASE %BTN_REVERT GRAPHIC COPY hBmpRevert, 0
Does anyone have any idea what's going on? Any suggestions will be most appreciated and just might save some of what little hair I have left.

Thanks,
Barry
Comment