Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting Text from IE's "Internet Explorer_Server" class windows... Pin
James R. Twine1-Mar-01 5:37
James R. Twine1-Mar-01 5:37 
GeneralRe: Getting Text from IE's Pin
l a u r e n1-Mar-01 9:50
l a u r e n1-Mar-01 9:50 
GeneralRe: Getting Text from IE's Pin
James R. Twine1-Mar-01 11:03
James R. Twine1-Mar-01 11:03 
QuestionHow to program a ftp-server Pin
1-Mar-01 5:20
suss1-Mar-01 5:20 
AnswerRe: How to program a ftp-server Pin
l a u r e n1-Mar-01 9:45
l a u r e n1-Mar-01 9:45 
AnswerRe: How to program a ftp-server Pin
Erik Funkenbusch1-Mar-01 13:03
Erik Funkenbusch1-Mar-01 13:03 
GeneralRe: How to program a ftp-server Pin
Cabadam7-May-01 15:01
Cabadam7-May-01 15:01 
QuestionHow to change font of Property Sheet? Pin
Nikolay Denisov1-Mar-01 3:22
Nikolay Denisov1-Mar-01 3:22 
Can anyone tell me if the following code is correct:

class CMyPropertySheet : public CPropertySheet
{
// ...
public:
virtual int DoModal();

protected:
static int CALLBACK PropSheetProc( HWND hwndDlg, UINT uMsg, LPARAM lParam );
}

class CMyDialogTemplate : public CDialogTemplate
{
friend CMyPropertySheet;
}

int CMyPropertySheet::DoModal()
{
m_psh.dwFlags |= PSH_USECALLBACK;
m_psh.pfnCallback = PropSheetProc;

return CPropertySheet::DoModal();
}

int CALLBACK CMyPropertySheet::PropSheetProc( HWND hwndDlg, UINT uMsg, LPARAM lParam )
{
switch ( uMsg )
{
case PSCB_PRECREATE:
{
LPDLGTEMPLATE pTemplate = ( LPDLGTEMPLATE )lParam;

CMyDialogTemplate dlgTemplate;
dlgTemplate.m_hTemplate = ::GlobalHandle( pTemplate );
dlgTemplate.m_dwTemplateSize = CMyDialogTemplate::GetTemplateSize( pTemplate );
dlgTemplate.SetFont( _T("Tahoma"), 8 );
dlgTemplate.Detach();
break;
}
default:
break;
}

return 0;
}

I am in doubt if it is allowed to modify property sheet template this way.
Although I have tried it out on NT4 and everything looked just fine.

Regards,
Nikolay
Confused | :confused:
AnswerRe: How to change font of Property Sheet? Pin
James R. Twine1-Mar-01 5:33
James R. Twine1-Mar-01 5:33 
GeneralRe: How to change font of Property Sheet? Pin
Nikolay Denisov1-Mar-01 19:38
Nikolay Denisov1-Mar-01 19:38 
GeneralRe: Property Sheets in Dialog Bar Pin
Rob Planche1-Mar-01 2:52
Rob Planche1-Mar-01 2:52 
GeneralBlue ComboBox, Problem with DrawItem Pin
Natacha1-Mar-01 1:40
Natacha1-Mar-01 1:40 
GeneralRe: Blue ComboBox, Problem with DrawItem Pin
l a u r e n1-Mar-01 3:37
l a u r e n1-Mar-01 3:37 
GeneralRe: Blue ComboBox, Problem with DrawItem Pin
16-May-01 3:03
suss16-May-01 3:03 
GeneralHOWTO: Determine windows login Pin
neilbennevis1-Mar-01 1:23
neilbennevis1-Mar-01 1:23 
GeneralWriting a C++ DLL with VB-compatibility in mind Pin
#realJSOP1-Mar-01 1:14
professional#realJSOP1-Mar-01 1:14 
GeneralRe: Writing a C++ DLL with VB-compatibility in mind Pin
l a u r e n1-Mar-01 3:28
l a u r e n1-Mar-01 3:28 
GeneralRe: Writing a C++ DLL with VB-compatibility in mind Pin
#realJSOP1-Mar-01 3:33
professional#realJSOP1-Mar-01 3:33 
GeneralRe: Writing a C++ DLL with VB-compatibility in mind Pin
l a u r e n1-Mar-01 3:41
l a u r e n1-Mar-01 3:41 
GeneralRe: Writing a C++ DLL with VB-compatibility in mind Pin
Chris Losinger1-Mar-01 3:57
professionalChris Losinger1-Mar-01 3:57 
GeneralRun a program Pin
1-Mar-01 1:11
suss1-Mar-01 1:11 
GeneralRe: Run a program Pin
1-Mar-01 1:15
suss1-Mar-01 1:15 
GeneralCMapStringToString Pin
28-Feb-01 23:51
suss28-Feb-01 23:51 
GeneralRe: CMapStringToString Pin
Steve Driessens2-Mar-01 3:05
Steve Driessens2-Mar-01 3:05 
GeneralNeed help with Dialogs... Pin
28-Feb-01 23:35
suss28-Feb-01 23:35 

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.