Click here to Skip to main content
15,900,378 members

Comments by EnderMo233 (Top 25 by date)

EnderMo233 29-Nov-21 0:11am View    
Thank you, but there is another problem. If a window is closed, how do I inform the program to reorder all windows?
For example, if I close the second window (assuming there are five in total), the third window will be sorted as "2", and so on
EnderMo233 28-Nov-21 5:01am View    
Actually, I want to use it like this:
struct Data
{
int x;
int y;
int width;
int height;
const wchar_t* text;
}
std::vector<data>UserData(32);//Max:32
//then read them from file,But the window must know which window it is:UserData[i].
For example,the first window will set their coordinates to UserData[1].x and UserData[1].y,also need to save the file when closing.
EnderMo233 21-Nov-21 8:19am View    
SelectObject(inhdc, hPreBmp);
When I delected this,it works.but why?Can you answer it?thank you
EnderMo233 21-Nov-21 7:55am View    
store stable data,That's what I want.
but when I try to display it,it is all black.
EnderMo233 21-Nov-21 5:23am View    
After debugging, this has nothing to do with the value of dystate, but the value of inhdc is not saved, so the interface is black