Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global Variables in SDI Pin
hellogany19-Apr-10 17:00
hellogany19-Apr-10 17:00 
GeneralRe: Global Variables in SDI Pin
CPallini19-Apr-10 22:02
mveCPallini19-Apr-10 22:02 
GeneralRe: Global Variables in SDI Pin
Iain Clarke, Warrior Programmer19-Apr-10 23:13
Iain Clarke, Warrior Programmer19-Apr-10 23:13 
GeneralRe: Global Variables in SDI Pin
hellogany20-Apr-10 20:22
hellogany20-Apr-10 20:22 
QuestionHow to get the hidden drives in windows? Pin
G Haranadh18-Apr-10 21:17
G Haranadh18-Apr-10 21:17 
AnswerRe: How to get the hidden drives in windows? Pin
SelvaKr18-Apr-10 23:08
SelvaKr18-Apr-10 23:08 
GeneralRe: How to get the hidden drives in windows? Pin
G Haranadh18-Apr-10 23:30
G Haranadh18-Apr-10 23:30 
AnswerRe: How to get the hidden drives in windows? Pin
Michel Godfroid19-Apr-10 0:01
Michel Godfroid19-Apr-10 0:01 
GeneralRe: How to get the hidden drives in windows? Pin
G Haranadh19-Apr-10 0:11
G Haranadh19-Apr-10 0:11 
QuestionAdding controls to an existing window Pin
depsch18-Apr-10 14:17
depsch18-Apr-10 14:17 
AnswerRe: Adding controls to an existing window Pin
Gwenio18-Apr-10 15:29
Gwenio18-Apr-10 15:29 
GeneralRe: Adding controls to an existing window Pin
depsch18-Apr-10 20:18
depsch18-Apr-10 20:18 
AnswerRe: Adding controls to an existing window Pin
Stephen Hewitt18-Apr-10 18:31
Stephen Hewitt18-Apr-10 18:31 
QuestionWindows multimedia or DirectSound - opinions wanted Pin
Vaclav_18-Apr-10 14:16
Vaclav_18-Apr-10 14:16 
AnswerRe: Windows multimedia or DirectSound - opinions wanted Pin
CPallini18-Apr-10 21:17
mveCPallini18-Apr-10 21:17 
AnswerRe: Windows multimedia or DirectSound - opinions wanted Pin
Code-o-mat18-Apr-10 21:37
Code-o-mat18-Apr-10 21:37 
QuestionCurious [Solved] Pin
Gwenio18-Apr-10 10:54
Gwenio18-Apr-10 10:54 
AnswerRe: Curious Pin
Stephen Hewitt18-Apr-10 18:28
Stephen Hewitt18-Apr-10 18:28 
GeneralRe: Curious Pin
Gwenio19-Apr-10 10:54
Gwenio19-Apr-10 10:54 
AnswerRe: Curious Pin
Richard MacCutchan19-Apr-10 1:16
mveRichard MacCutchan19-Apr-10 1:16 
GeneralRe: Curious Pin
Gwenio19-Apr-10 10:49
Gwenio19-Apr-10 10:49 
GeneralRe: Curious Pin
Richard MacCutchan19-Apr-10 11:05
mveRichard MacCutchan19-Apr-10 11:05 
GeneralRe: Curious Pin
Gwenio19-Apr-10 11:38
Gwenio19-Apr-10 11:38 
GeneralRe: Curious Pin
Richard MacCutchan19-Apr-10 12:28
mveRichard MacCutchan19-Apr-10 12:28 
GeneralRe: Curious Pin
Gwenio19-Apr-10 13:13
Gwenio19-Apr-10 13:13 
It is an inline function; x, y, width, and height are values passed to it.

In the case this thread refers to: x = 0, y = 0, width = GetSystemMetrics(SM_CXSCREEN), height = GetSystemMetrics(SM_CYSCREEN).

AdjustWindowRect causes the bottom and right member variables to be adjusted such that if you create a window using them, the height and width of the client area will be equal to the original values of those variables. This is simpler and less error prone than figuring it out myself.

Do to the nature of the redraw code as it stood at the time I was doing this, everywhere that was not drawn to would be filled with black. I know this because I am doing the drawing with OpenGL and when I had a matrix out of place (it was the default matrix, so only the upper right was being drawn). So that is not an issue.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.