Click here to Skip to main content
15,068,581 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Beginner Visual c++ , code for adding two integers Pin
ThatsAlok16-Jan-06 16:58
MemberThatsAlok16-Jan-06 16:58 
AnswerRe: Beginner Visual c++ , code for adding two integers Pin
vikas amin17-Jan-06 2:36
Membervikas amin17-Jan-06 2:36 
QuestionNeed different versions for different project configurations Pin
Wheatbread16-Jan-06 6:04
MemberWheatbread16-Jan-06 6:04 
AnswerRe: Need different versions for different project configurations Pin
Bob Flynn16-Jan-06 7:24
MemberBob Flynn16-Jan-06 7:24 
GeneralRe: Need different versions for different project configurations Pin
Wheatbread16-Jan-06 8:41
MemberWheatbread16-Jan-06 8:41 
AnswerRe: Need different versions for different project configurations Pin
Oleg Didenko17-Jan-06 4:52
MemberOleg Didenko17-Jan-06 4:52 
AnswerRe: Need different versions for different project configurations Pin
Blake Miller17-Jan-06 7:20
MemberBlake Miller17-Jan-06 7:20 
QuestionSetWindowPos Pin
gomez_a16-Jan-06 5:39
Membergomez_a16-Jan-06 5:39 
I prepared (in Visual Studio 2003 + MFC) "Dialog Based" Application. Now, I have one dialog window where I want to add two book marks.

I have two objects:
class DlgPage1 : public CPropertyPage
// variable mPage1
class DlgPage2 : public CPropertyPage
// variable mPage2

In the resource window I have done two dialogs with properties:

Style = child
Border = thin
TitleBar = true
Disabled = true

In the OnInitDialog (main window) function I have code:

mPropertySheet = new CPropertySheet("Simple PropertySheet");

mPage1 = new DlgPage1();
mPage2 = new DlgPage2();

mPropertySheet->AddPage(mPage1);
mPropertySheet->AddPage(mPage2);

mPropertySheet->Create(this, WS_CHILD | WS_VISIBLE, 0);
mPropertySheet->ModifyStyleEx(0, WS_EX_CONTROLPARENT);
mPropertySheet->ModifyStyleEx(0, WS_TABSTOP);
mPropertySheet->ModifyStyleEx(0, WS_MAXIMIZE);

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

mPropertySheet->SetWindowPos(NULL, 7, 7, mWidth, mHeight, SWP_NOZORDER);

================
The SetWindowPos doesn't do what I expect.
Why the windows doesn't resize?
It has the size - I designed in the Resource.



Regards

mwgomez/Poland

AnswerRe: SetWindowPos Pin
Rage16-Jan-06 6:00
professionalRage16-Jan-06 6:00 
GeneralRe: SetWindowPos Pin
gomez_a16-Jan-06 6:26
Membergomez_a16-Jan-06 6:26 
AnswerRe: SetWindowPos Pin
Stephen Hewitt16-Jan-06 17:11
MemberStephen Hewitt16-Jan-06 17:11 
GeneralRe: SetWindowPos Pin
gomez_a17-Jan-06 1:14
Membergomez_a17-Jan-06 1:14 
AnswerRe: SetWindowPos Pin
vallikumar16-Jan-06 23:37
Membervallikumar16-Jan-06 23:37 
GeneralRe: SetWindowPos Pin
gomez_a23-Jan-06 4:32
Membergomez_a23-Jan-06 4:32 
QuestionScroll Bar Problem Pin
tonychio16-Jan-06 5:37
Membertonychio16-Jan-06 5:37 
AnswerRe: Scroll Bar Problem Pin
Owner drawn16-Jan-06 19:06
MemberOwner drawn16-Jan-06 19:06 
GeneralNeed help, the solution works partially! Pin
Temp8317-Jan-06 1:30
MemberTemp8317-Jan-06 1:30 
GeneralRe: Need help, the solution works partially! Pin
Owner drawn17-Jan-06 1:47
MemberOwner drawn17-Jan-06 1:47 
QuestionWinZip of files Pin
psbasha16-Jan-06 5:28
Memberpsbasha16-Jan-06 5:28 
AnswerRe: WinZip of files Pin
toxcct16-Jan-06 5:37
Membertoxcct16-Jan-06 5:37 
GeneralRe: WinZip of files Pin
psbasha16-Jan-06 5:41
Memberpsbasha16-Jan-06 5:41 
GeneralRe: WinZip of files Pin
toxcct16-Jan-06 5:45
Membertoxcct16-Jan-06 5:45 
GeneralRe: WinZip of files Pin
ThatsAlok16-Jan-06 17:13
MemberThatsAlok16-Jan-06 17:13 
GeneralRe: WinZip of files Pin
psbasha17-Jan-06 6:18
Memberpsbasha17-Jan-06 6:18 
GeneralRe: WinZip of files Pin
ThatsAlok17-Jan-06 17:30
MemberThatsAlok17-Jan-06 17:30 

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.