Click here to Skip to main content
15,920,688 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCareful with CRecordset::GetRecordCount() Pin
Alexander Wiseman19-Jul-04 6:01
Alexander Wiseman19-Jul-04 6:01 
GeneralRe: Careful with CRecordset::GetRecordCount() Pin
BlackDice20-Jul-04 3:26
BlackDice20-Jul-04 3:26 
GeneralRe: Careful with CRecordset::GetRecordCount() Pin
Alexander Wiseman20-Jul-04 5:06
Alexander Wiseman20-Jul-04 5:06 
GeneralRe: Careful with CRecordset::GetRecordCount() Pin
BlackDice20-Jul-04 8:22
BlackDice20-Jul-04 8:22 
GeneralRe: need help!!!! Pin
BlackDice19-Jul-04 2:39
BlackDice19-Jul-04 2:39 
GeneralGetting All URLs in the History Folder Pin
Liger_Zero_X19-Jul-04 0:13
Liger_Zero_X19-Jul-04 0:13 
GeneralRe: Getting All URLs in the History Folder Pin
David Crow19-Jul-04 3:05
David Crow19-Jul-04 3:05 
QuestionAre these COORDinates they're talking about or SIZEs? Pin
0v3rloader19-Jul-04 0:13
0v3rloader19-Jul-04 0:13 
Hello,

I have stumbled across one odd (in the very least) situation.

According to what MSDN makes reference to, almost all pos/size changing methods understand left/top as the topmost coordinates and right/bottom as the width/height. But that doesn't work in my programs, for some reason, as right/bottom are understood as screen coordinates and not as width/height.

Should I be doing any coordinate mapping of some sort? What am I missing out here?

David


Example:

In MSDN:
CWnd::MoveWindow
void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );

void MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE );

Parameters
x		Specifies the new position of the left side of the CWnd.
y		Specifies the new position of the top of the CWnd.
nWidth		Specifies the new width of the CWnd.
nHeight		Specifies the new height of the CWnd.
bRepaint	Specifies whether CWnd is to be repainted. If TRUE, CWnd
		receives aWM_PAINT message in its OnPaint message handler as usual. If this
		parameter is FALSE, no repainting of any kind occurs. This applies to the 
		client area, to the nonclient area (including the title and scroll bars), 
		and to any part of the parent window uncovered as a result of Cwnd’s move. 
		When this parameter is FALSE, the application must explicitly invalidate or 
		redraw any parts of CWnd and parent window that must be redrawn.

lpRect		The CRect object or RECT structure that specifies the new size and position.

AnswerRe: Are these COORDinates they're talking about or SIZEs? Pin
Toni7819-Jul-04 4:24
Toni7819-Jul-04 4:24 
AnswerRe: Are these COORDinates they're talking about or SIZEs? Pin
Johan Rosengren19-Jul-04 4:25
Johan Rosengren19-Jul-04 4:25 
GeneralRe: Are these COORDinates they're talking about or SIZEs? Pin
0v3rloader19-Jul-04 7:46
0v3rloader19-Jul-04 7:46 
GeneralRe: Are these COORDinates they're talking about or SIZEs? Pin
Toni7819-Jul-04 8:46
Toni7819-Jul-04 8:46 
GeneralRe: Are these COORDinates they're talking about or SIZEs? Pin
Johan Rosengren19-Jul-04 21:40
Johan Rosengren19-Jul-04 21:40 
GeneralRe: Are these COORDinates they're talking about or SIZEs? Pin
Toni7821-Jul-04 8:36
Toni7821-Jul-04 8:36 
GeneralRe: Are these COORDinates they're talking about or SIZEs? Pin
Johan Rosengren19-Jul-04 21:49
Johan Rosengren19-Jul-04 21:49 
GeneralFinding a file Pin
Anonymous19-Jul-04 0:07
Anonymous19-Jul-04 0:07 
GeneralRe: Finding a file Pin
vikram attiganal19-Jul-04 0:20
vikram attiganal19-Jul-04 0:20 
GeneralRe: Finding a file Pin
Anonymous19-Jul-04 0:37
Anonymous19-Jul-04 0:37 
GeneralRe: Finding a file Pin
gillou166419-Jul-04 0:55
gillou166419-Jul-04 0:55 
GeneralRe: Finding a file Pin
ThatsAlok19-Jul-04 2:28
ThatsAlok19-Jul-04 2:28 
General[MDI] Detecting document switch Pin
Maarten Kools18-Jul-04 23:53
professionalMaarten Kools18-Jul-04 23:53 
Generalstatus bar.. Pin
mvnevis18-Jul-04 23:50
mvnevis18-Jul-04 23:50 
GeneralRe: status bar.. Pin
Maarten Kools18-Jul-04 23:59
professionalMaarten Kools18-Jul-04 23:59 
GeneralRedrawing MSHFlexGrid Pin
V.18-Jul-04 23:36
professionalV.18-Jul-04 23:36 
GeneralRe: Redrawing MSHFlexGrid Pin
Toni7819-Jul-04 5:13
Toni7819-Jul-04 5:13 

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.