Hello all,
I do have a static control where I do load 6 bitmap pictures depending on some variables.
On top of that bitmap I want to put some buttons.
That static control is not as big as the dialog, it is just on top right and it changes position when the dialog changes sizes.
when I do change the picture using the following code the buttons disappear:
hBMP = (HBITMAP)LoadImage(NULL, csPath, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
hbmpPrev = m_cstatPicture.SetBitmap((HBITMAP)hBMP);
m_cstatPicture.SetWindowPos(&wndBottom, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);
How can I avoid that?
I'd like having those buttons always on top of the bitmap image.
After calling that code in the program I try to set the button windows to be the TOPMOST using this:
pButton->SetWindowPos(&wndTopMost, left, top, Width(), Height(), SWP_SHOWWINDOW);
But still no luck...
Any hint?