Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Beginner Visual c++ , code for adding two integers Pin
vikas amin17-Jan-06 2:36
vikas amin17-Jan-06 2:36 
QuestionNeed different versions for different project configurations Pin
Wheatbread16-Jan-06 6:04
Wheatbread16-Jan-06 6:04 
AnswerRe: Need different versions for different project configurations Pin
Bob Flynn16-Jan-06 7:24
Bob Flynn16-Jan-06 7:24 
GeneralRe: Need different versions for different project configurations Pin
Wheatbread16-Jan-06 8:41
Wheatbread16-Jan-06 8:41 
AnswerRe: Need different versions for different project configurations Pin
Oleg Didenko17-Jan-06 4:52
Oleg Didenko17-Jan-06 4:52 
AnswerRe: Need different versions for different project configurations Pin
Blake Miller17-Jan-06 7:20
Blake Miller17-Jan-06 7:20 
QuestionSetWindowPos Pin
gomez_a16-Jan-06 5:39
gomez_a16-Jan-06 5:39 
AnswerRe: SetWindowPos Pin
Rage16-Jan-06 6:00
professionalRage16-Jan-06 6:00 
gomez_a wrote:
It has the size - I designed in the Resource.


And this is exactely what you request by doing this:

// now, I want to resize windows for almost maximum size
CRect rect;
GetClientRect(&rect);         // Get size in resource
int Width = rect.Width()-7;
int mHeight = rect.Height()-7;

// Give control the resource size again  !! (start + height/widht -7 = 7 + h/w - 7 = h/w)
mPropertySheet->SetWindowPos(NULL, 7, 7, mWidth, mHeight, SWP_NOZORDER);


If you want to maximize your widows, use GetSystemMetrics to get the screen size, and use SetWindowPos to update your window size:
int cx,cy;
cx=GetSystemMetrics(SM_CXSCREEN);
cy=GetSystemMetrics(SM_CYSCREEN);
mPropertySheet->SetWindowPos(NULL, 7, 7, cx-7, cy-7, SWP_NOZORDER);








~RaGE();
GeneralRe: SetWindowPos Pin
gomez_a16-Jan-06 6:26
gomez_a16-Jan-06 6:26 
AnswerRe: SetWindowPos Pin
Stephen Hewitt16-Jan-06 17:11
Stephen Hewitt16-Jan-06 17:11 
GeneralRe: SetWindowPos Pin
gomez_a17-Jan-06 1:14
gomez_a17-Jan-06 1:14 
AnswerRe: SetWindowPos Pin
vallikumar16-Jan-06 23:37
vallikumar16-Jan-06 23:37 
GeneralRe: SetWindowPos Pin
gomez_a23-Jan-06 4:32
gomez_a23-Jan-06 4:32 
QuestionScroll Bar Problem Pin
tonychio16-Jan-06 5:37
tonychio16-Jan-06 5:37 
AnswerRe: Scroll Bar Problem Pin
Owner drawn16-Jan-06 19:06
Owner drawn16-Jan-06 19:06 
GeneralNeed help, the solution works partially! Pin
Temp8317-Jan-06 1:30
Temp8317-Jan-06 1:30 
GeneralRe: Need help, the solution works partially! Pin
Owner drawn17-Jan-06 1:47
Owner drawn17-Jan-06 1:47 
QuestionWinZip of files Pin
psbasha16-Jan-06 5:28
psbasha16-Jan-06 5:28 
AnswerRe: WinZip of files Pin
toxcct16-Jan-06 5:37
toxcct16-Jan-06 5:37 
GeneralRe: WinZip of files Pin
psbasha16-Jan-06 5:41
psbasha16-Jan-06 5:41 
GeneralRe: WinZip of files Pin
toxcct16-Jan-06 5:45
toxcct16-Jan-06 5:45 
GeneralRe: WinZip of files Pin
ThatsAlok16-Jan-06 17:13
ThatsAlok16-Jan-06 17:13 
GeneralRe: WinZip of files Pin
psbasha17-Jan-06 6:18
psbasha17-Jan-06 6:18 
GeneralRe: WinZip of files Pin
ThatsAlok17-Jan-06 17:30
ThatsAlok17-Jan-06 17:30 
AnswerRe: WinZip of files Pin
kakan16-Jan-06 19:06
professionalkakan16-Jan-06 19:06 

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.