Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
GeneralRe: Curious Pin
Richard MacCutchan20-Apr-10 1:16
mveRichard MacCutchan20-Apr-10 1:16 
GeneralRe: Curious Pin
Stephen Hewitt19-Apr-10 13:54
Stephen Hewitt19-Apr-10 13:54 
GeneralRe: Curious Pin
Gwenio19-Apr-10 14:02
Gwenio19-Apr-10 14:02 
Questionwchar_t / C++ Pin
Fareed Rizkalla18-Apr-10 9:19
Fareed Rizkalla18-Apr-10 9:19 
AnswerRe: wchar_t / C++ Pin
Chris Losinger18-Apr-10 9:51
professionalChris Losinger18-Apr-10 9:51 
AnswerRe: wchar_t / C++ Pin
Richard MacCutchan18-Apr-10 11:09
mveRichard MacCutchan18-Apr-10 11:09 
QuestionWinSock 2 / Win32 Pin
Fareed Rizkalla18-Apr-10 9:15
Fareed Rizkalla18-Apr-10 9:15 
AnswerRe: WinSock 2 / Win32 Pin
Richard Andrew x6418-Apr-10 13:33
professionalRichard Andrew x6418-Apr-10 13:33 
AnswerRe: WinSock 2 / Win32 [modified] Pin
Moak18-Apr-10 20:21
Moak18-Apr-10 20:21 
GeneralRe: WinSock 2 / Win32 Pin
Fareed Rizkalla19-Apr-10 3:10
Fareed Rizkalla19-Apr-10 3:10 
GeneralRe: WinSock 2 / Win32 Pin
Moak19-Apr-10 4:09
Moak19-Apr-10 4:09 
GeneralRe: WinSock 2 / Win32 Pin
Spawn@Melmac19-Apr-10 4:27
Spawn@Melmac19-Apr-10 4:27 
GeneralRe: WinSock 2 / Win32 Pin
Fareed Rizkalla4-May-10 21:02
Fareed Rizkalla4-May-10 21:02 
GeneralRe: WinSock 2 / Win32 Pin
Spawn@Melmac5-May-10 0:13
Spawn@Melmac5-May-10 0:13 
Questionprevious next button to change pictures Pin
taouki18-Apr-10 7:04
taouki18-Apr-10 7:04 
AnswerRe: previous next button to change pictures Pin
cconklin18-Apr-10 7:07
cconklin18-Apr-10 7:07 
GeneralRe: previous next button to change pictures Pin
taouki18-Apr-10 7:10
taouki18-Apr-10 7:10 

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.