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

C / C++ / MFC

 
AnswerRe: Insertion of Smiley Faces in Rich Edit Control Pin
David Crow19-Sep-07 2:43
David Crow19-Sep-07 2:43 
QuestionAdjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 1:27
Nishad S19-Sep-07 1:27 
AnswerRe: Adjusting the size of the page in the property sheet Pin
KarstenK19-Sep-07 2:22
mveKarstenK19-Sep-07 2:22 
AnswerRe: Adjusting the size of the page in the property sheet Pin
David Crow19-Sep-07 2:44
David Crow19-Sep-07 2:44 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 19:09
Nishad S19-Sep-07 19:09 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nelek19-Sep-07 20:18
protectorNelek19-Sep-07 20:18 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 20:32
Nishad S19-Sep-07 20:32 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nelek19-Sep-07 22:02
protectorNelek19-Sep-07 22:02 
If your problem is that you have to change the size in every sheet. Insteads of coding one function per every sheet, you can make it with just a function and calling it when a sheet changes before the datas are shown.

To do that, you can take a pointer/handler to every sheet and give it as parameter to the function. Then code the change of size to the concrete sheet.

for example:
void ChangeSheetSize (CWnd* pWnd)
{
//make the change of size
}

//when a sheet is being selected
CPropertyPage::OnSetActive ()
{
CWnd* pWnd = GetActiveWindow ();
ChangeSheetSize (pWnd);

//Continue showing the datas of the concrete sheet
}


Im not sure if there is a better way, but I think it can work

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: Adjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 22:23
Nishad S19-Sep-07 22:23 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nelek20-Sep-07 4:06
protectorNelek20-Sep-07 4:06 
GeneralRe: Adjusting the size of the page in the property sheet Pin
David Crow20-Sep-07 2:29
David Crow20-Sep-07 2:29 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nishad S20-Sep-07 18:49
Nishad S20-Sep-07 18:49 
QuestionRe: Adjusting the size of the page in the property sheet Pin
David Crow21-Sep-07 2:41
David Crow21-Sep-07 2:41 
AnswerRe: Adjusting the size of the page in the property sheet Pin
Nishad S21-Sep-07 23:52
Nishad S21-Sep-07 23:52 
GeneralRe: Adjusting the size of the page in the property sheet Pin
David Crow22-Sep-07 16:35
David Crow22-Sep-07 16:35 
Question[PacketSniffing] Tcp packet ordering and SIO_RCVALL. Pin
ioctl5119-Sep-07 1:08
ioctl5119-Sep-07 1:08 
Questionhow to put blank line in Excel Pin
tunminhein19-Sep-07 0:44
tunminhein19-Sep-07 0:44 
AnswerRe: how to put blank line in Excel Pin
David Crow19-Sep-07 2:46
David Crow19-Sep-07 2:46 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 3:28
tunminhein19-Sep-07 3:28 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 3:31
David Crow19-Sep-07 3:31 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 3:45
tunminhein19-Sep-07 3:45 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 4:23
tunminhein19-Sep-07 4:23 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 5:31
David Crow19-Sep-07 5:31 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 5:40
tunminhein19-Sep-07 5:40 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 5:50
David Crow19-Sep-07 5:50 

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.