Click here to Skip to main content
15,900,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMSDataGrid Pin
Alton Williams6-Jun-04 18:07
Alton Williams6-Jun-04 18:07 
Questionwill this be compiler(M$ cl) bug or Memory leakage? Pin
DengJW6-Jun-04 17:14
DengJW6-Jun-04 17:14 
AnswerRe: will this be compiler(MS cl) bug or Memory leakage? Pin
Michael Dunn6-Jun-04 19:56
sitebuilderMichael Dunn6-Jun-04 19:56 
GeneralRe: will this be compiler(MS cl) bug or Memory leakage? Pin
DengJW6-Jun-04 20:06
DengJW6-Jun-04 20:06 
GeneralMoveWindow shrinking my dialog Pin
Vadim Tabakman6-Jun-04 14:04
Vadim Tabakman6-Jun-04 14:04 
GeneralRe: MoveWindow shrinking my dialog Pin
Anthony_Yio6-Jun-04 17:07
Anthony_Yio6-Jun-04 17:07 
GeneralRe: MoveWindow shrinking my dialog Pin
Vadim Tabakman6-Jun-04 18:07
Vadim Tabakman6-Jun-04 18:07 
GeneralRe: MoveWindow shrinking my dialog Pin
Anthony_Yio6-Jun-04 20:37
Anthony_Yio6-Jun-04 20:37 
Your previous codes uses GetClientRect.

Would it because in the process of calculation you have missed out nonclient area (including the title and scroll bars) if you are using GetClientRect?

And I noticed that CRect and RECT structure has slighly different data type members

typedef struct tagRECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;


If you use CRect function size(), width() and height(). It will return int instead of LONG which could cast the value away. (Although I don't think that will happen)

hope this helps.

Sonork 100.41263:Anthony_Yio

GeneralRe: MoveWindow shrinking my dialog Pin
Vadim Tabakman7-Jun-04 16:15
Vadim Tabakman7-Jun-04 16:15 
GeneralRe: MoveWindow shrinking my dialog Pin
User 5838526-Jun-04 18:48
User 5838526-Jun-04 18:48 
Questionhow can I change the color of status bar Pin
woyaojinqu6-Jun-04 13:14
woyaojinqu6-Jun-04 13:14 
AnswerRe: how can I change the color of status bar Pin
bneacetp6-Jun-04 13:35
bneacetp6-Jun-04 13:35 
AnswerRe: how can I change the color of status bar Pin
Cedric Moonen6-Jun-04 20:43
Cedric Moonen6-Jun-04 20:43 
QuestionHow to support Drag 'n Drop out of ZIP archive onto an Applications window / Desktop program icon ? Pin
Defenestration6-Jun-04 11:57
Defenestration6-Jun-04 11:57 
AnswerRe: How to support Drag 'n Drop out of ZIP archive onto an Applications window / Desktop program icon ? Pin
Anthony_Yio6-Jun-04 17:10
Anthony_Yio6-Jun-04 17:10 
AnswerRe: How to support Drag 'n Drop out of ZIP archive onto an Applications window / Desktop program icon ? Pin
Michael Dunn6-Jun-04 20:01
sitebuilderMichael Dunn6-Jun-04 20:01 
GeneralPlease Help!!!I'm disperate Pin
Nemok6-Jun-04 10:21
Nemok6-Jun-04 10:21 
GeneralRe: Please Help!!!I'm disperate Pin
FreeLemons6-Jun-04 10:27
FreeLemons6-Jun-04 10:27 
GeneralRe: Please Help!!!I'm disperate Pin
Nemok8-Jun-04 6:06
Nemok8-Jun-04 6:06 
Generalquicksort with random pivot Pin
FreeLemons6-Jun-04 9:40
FreeLemons6-Jun-04 9:40 
GeneralRe: quicksort with random pivot Pin
David Crow7-Jun-04 2:34
David Crow7-Jun-04 2:34 
GeneralThreads dialog box Pin
LasVegasGuy6-Jun-04 8:48
LasVegasGuy6-Jun-04 8:48 
GeneralOverloading -> and ->* operators Pin
Alton Williams6-Jun-04 7:00
Alton Williams6-Jun-04 7:00 
GeneralRe: Overloading -> and ->* operators Pin
Diddy6-Jun-04 11:48
Diddy6-Jun-04 11:48 
GeneralADO Record Delete issue Pin
brdavid6-Jun-04 2:13
brdavid6-Jun-04 2: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.