Click here to Skip to main content
16,010,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #import - Can you expand on that? Pin
AlexO14-Jan-03 7:28
AlexO14-Jan-03 7:28 
QuestionHow to change icon colors on the fly? Pin
Geert Delmeiren14-Jan-03 5:22
Geert Delmeiren14-Jan-03 5:22 
Generalpush_back and CDialog Pin
ns14-Jan-03 5:11
ns14-Jan-03 5:11 
GeneralRe: push_back and CDialog Pin
Maximilien14-Jan-03 5:30
Maximilien14-Jan-03 5:30 
GeneralRe: push_back and CDialog Pin
ns14-Jan-03 8:07
ns14-Jan-03 8:07 
GeneralRe: push_back and CDialog Pin
Maximilien14-Jan-03 8:33
Maximilien14-Jan-03 8:33 
GeneralRe: push_back and CDialog Pin
ns14-Jan-03 8:54
ns14-Jan-03 8:54 
GeneralGEtWindowRect Pin
ns14-Jan-03 4:36
ns14-Jan-03 4:36 
I want the location and size of my CDialog that was spawned by a CView. In the OnDestroy of the mainframe I will save the location,size etc. I have access to the CDIalog object I created.

SO if I do

imageDisplay.GetWindowRect(&rect);


what will come back in rect?

imageDisplay = *pdlg where pdlg was the modeless dialog pointer used in pdlg->Create()

Is this rect.top, .left etc not in terms of the coordinates of the Computer screen? MSDN says :

Copies the dimensions of the bounding rectangle of the CWnd object to the structure pointed to by lpRect. The dimensions are given in screen coordinates

Someone said to use GetWindowPlacement. Wont the GetWindowRect give me everything I need?

For GetWindowPlacement MSDN says:
rcNormalPosition<br />
<br />
Specifies the window’s coordinates when the window is in the normal (restored) position. <br />


but doesnt tell me what the coordinates origin is...

Appreciate your help,
ns
GeneralRe: GEtWindowRect Pin
Oliver Anhuth14-Jan-03 4:54
Oliver Anhuth14-Jan-03 4:54 
GeneralCryptoAPI question Pin
User 988514-Jan-03 4:29
User 988514-Jan-03 4:29 
GeneralRe: CryptoAPI question Pin
geo_m15-Jan-03 8:40
geo_m15-Jan-03 8:40 
GeneralRe: CryptoAPI question Pin
User 988515-Jan-03 9:29
User 988515-Jan-03 9:29 
GeneralRe: CryptoAPI question Pin
geo_m15-Jan-03 9:40
geo_m15-Jan-03 9:40 
GeneralRe: CryptoAPI question Pin
Raphael Amorim18-Feb-03 7:42
professionalRaphael Amorim18-Feb-03 7:42 
GeneralRe: CryptoAPI question Pin
User 988518-Feb-03 7:53
User 988518-Feb-03 7:53 
GeneralCString quandry Pin
carrie14-Jan-03 4:16
carrie14-Jan-03 4:16 
GeneralRe: CString quandry Pin
User 988514-Jan-03 4:39
User 988514-Jan-03 4:39 
GeneralRe: CString quandry Pin
carrie14-Jan-03 4:46
carrie14-Jan-03 4:46 
GeneralRe: CString quandry Pin
User 988514-Jan-03 5:09
User 988514-Jan-03 5:09 
GeneralRe: CString quandry Pin
Anonymous14-Jan-03 9:32
Anonymous14-Jan-03 9:32 
GeneralCommand Line parameters Pin
(Steven Hicks)n+114-Jan-03 4:12
(Steven Hicks)n+114-Jan-03 4:12 
GeneralRe: Command Line parameters Pin
Ben Burnett14-Jan-03 12:12
Ben Burnett14-Jan-03 12:12 
GeneralProblem with OnToolbarDropDown Pin
tabor2514-Jan-03 4:07
tabor2514-Jan-03 4:07 
Generalshareware / registration techniques.... Pin
joshfl14-Jan-03 4:06
joshfl14-Jan-03 4:06 
GeneralRe: shareware / registration techniques.... Pin
Maximilien14-Jan-03 4:33
Maximilien14-Jan-03 4:33 

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.