Hi there,
I was wondering how to hide a button behind an image or icon....
I can make this work with region only why :( ?
Quote from: hfheatherfox07 on August 18, 2012, 08:53:39 AMI was wondering how to hide a button behind an image or icon....
ShowWindow(hBtn,SW_HIDE) ?
Set a BS_OWNERDRAW window style to a button.
CONTROL "IDC_BTN",IDC_BTN1,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_CLIPSIBLINGS|WS_TABSTOP|BS_OWNERDRAW,12,12,36,18,WS_EX_OVERLAPPEDWINDOW
Quote from: Antariy on August 18, 2012, 11:52:04 AM
Set a BS_OWNERDRAW window style to a button.
CONTROL "IDC_BTN",IDC_BTN1,"Button",WS_CHILDWINDOW|WS_VISIBLE|WS_CLIPSIBLINGS|WS_TABSTOP|BS_OWNERDRAW,12,12,36,18,WS_EX_OVERLAPPEDWINDOW
That leaves a static in the shape of the Button ....It does not show icon or bitmap that is there
Quote from: qWord on August 18, 2012, 10:34:04 AM
Quote from: hfheatherfox07 on August 18, 2012, 08:53:39 AMI was wondering how to hide a button behind an image or icon....
ShowWindow(hBtn,SW_HIDE) ?
LOL
The Button Is hidden ...but wont work
Use static for a bitmap displaying - declare it in a RC file after button declaration.
Oh Ok ....
That works but ...it breaks the image.... you meant add a static image on top of the bottom right ?
LOL Never Mind .....
I Got what you were saying
Thank you that works :biggrin:
:t