HyperEngineer
Programmer
I have the following lines in the OnCtlColor() function.
The clientWindow->GetWindowRect(&MyRect) statement generates an error. It says an instruction referenced a memory location that it could not read. I tried to use memset to give the MyRect variable allocated space. I don't know what else to do. Any ideas?
HyperEngineer
If it ain't broke, it probably needs improvement.
Code:
CWnd* clientWindow = GetWindow(GW_OWNER);
RECT MyRect;
clientWindow->GetWindowRect(&MyRect);
The clientWindow->GetWindowRect(&MyRect) statement generates an error. It says an instruction referenced a memory location that it could not read. I tried to use memset to give the MyRect variable allocated space. I don't know what else to do. Any ideas?
HyperEngineer
If it ain't broke, it probably needs improvement.