declare the variable that you want to access as "public". Are you sure you can acces the instance of the first dialog in the member functions of the second dialog? Have you included the header of the first dialog into the .cpp of the second?
I would like to insert a small bitmap in a dialog box that already has a background(another bitmap) at some coordonates. In essence, I would like to simulate an image mouvement. I can do this in 2 steps:
1. I delete the image at the previous coordonates
2. I insert the bitmap at the new...
Thnks for the advise. I still have this problem: I'm trying to move an image on the background of the dialog box. I do this by calling a function from the OnPaint function. The thing is that I want to redraw only one part of the window, keeping the rest of the backround unchanged. I've read some...
Hy, I am not very familiar with visual c++ and because of this i tried without succes to write a function that can draw into a dialog box, using CClientDC. It looks like this:
void CDesDlg::Deseneaza(int x, int y)
{
CClientDC dc(this);
CDC dcMem;
dcMem.CreateCompatibleDC(&dc)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.