First, create a button via CreateWindow (WC_BUTTON,... ) Second, the draw a image via StretchDIBits (HDC, x,... ), the image memory is gotten with a camera Then, I want to draw the button created above on the image I try to use ShowWindow, it will send a message to Windows to draw the button So ShowWindow and StretchDIBits maybe be the draw button first, then draw the image, or the draw the image first, then the draw button It 's not what I want to do. I want to draw the image first, then the draw button immediately. Or the button is covered by the image.
CodePudding user response:
DrawFrameControl DFC_BUTTON can draw button Map the location of the record, the mouse and click, determine whether in this area, and then simulate button send WM_COMMAND BN_CLICKED message
CodePudding user response:
How to search the draw button, make your request
CodePudding user response:
Did the whole interface is a background, the button changes what is according to the state of the mouse, local map,
CodePudding user response:
Don't have to "first, create a button via CreateWindow (WC_BUTTON,... " 1 the draw the image first 2 then the draw the button later.