Click here to Skip to main content
15,884,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Beginner Visual c++ , code for adding two integers Pin
ThatsAlok16-Jan-06 16:58
ThatsAlok16-Jan-06 16:58 
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 
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
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 

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.