Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString to long Pin
Rajesh R Subramanian24-Jul-09 2:54
professionalRajesh R Subramanian24-Jul-09 2:54 
QuestionHow To Reduce time for populating the Data in Graph Format Pin
prashant_lathigara from india24-Jul-09 1:42
prashant_lathigara from india24-Jul-09 1:42 
AnswerRe: How To Reduce time for populating the Data in Graph Format Pin
Cedric Moonen24-Jul-09 2:39
Cedric Moonen24-Jul-09 2:39 
QuestionAdd-in Pin
john563224-Jul-09 1:32
john563224-Jul-09 1:32 
AnswerRe: Add-in Pin
Mahesh Kulkarni24-Jul-09 1:39
Mahesh Kulkarni24-Jul-09 1:39 
QuestionModelessDialog Pin
kumar sanghvi24-Jul-09 1:23
kumar sanghvi24-Jul-09 1:23 
Hi,
im overriding Create function of Modeless Dialog...to increase the font and Dialog size along with the controls inside it... as follows...

BOOL CTestDlgDlg::Create(UINT nID, CWnd* pParent)
{
CDialogTemplate dlt;
// int nResult;

// load dialog template
if (!dlt.Load(MAKEINTRESOURCE(CTestDlgDlg::IDD))) return FALSE;

// get pointer to the modified dialog template
LPSTR pdata = (LPSTR)GlobalLock(dlt.m_hTemplate);

LPDLGTEMPLATE pDlgTemplate = (LPDLGTEMPLATE)pdata;

//pDlgTemplate->style |= DS_SETFONT;
// set your own font, for example "Arial", 10 pts.

dlt.SetFont(L"Century Schoolbook", 18);
// let MFC know that you are using your own template
m_lpszTemplateName = NULL;
//InitModalIndirect(pdata);

// display dialog box
//nResult = CDialog::DoModal();

// unlock memory object
// CDialog::Create(nID,pParent);
BOOL bret CDialog::CreateDlgIndirect(pDlgTemplate, pParent, AfxGetInstanceHandle());

GlobalUnlock(dlt.m_hTemplate);
return bret;

}

The size of the DialogBox along with the controls inside it are getting increased except
the Title bar of the DialogBox.Even the Text is also not getting increased.Pls let me know how can i increase the size of the Title bar along with the font size..without using custom titlebar...
AnswerRe: ModelessDialog Pin
«_Superman_»24-Jul-09 4:20
professional«_Superman_»24-Jul-09 4:20 
QuestionHow Can I detect silence? Pin
Guillermo198024-Jul-09 0:30
Guillermo198024-Jul-09 0:30 
AnswerRe: How Can I detect silence? Pin
Rozis24-Jul-09 13:42
Rozis24-Jul-09 13:42 
QuestionIServerXMLHTTPRequest setproxy() method usage Pin
Ash_VCPP24-Jul-09 0:09
Ash_VCPP24-Jul-09 0:09 
QuestionSTL hashmap crashing Pin
Subrat Patnaik24-Jul-09 0:09
Subrat Patnaik24-Jul-09 0:09 
AnswerRe: STL hashmap crashing Pin
Roger Allen24-Jul-09 3:15
Roger Allen24-Jul-09 3:15 
QuestionHow to realize SAFEARRAY in C++ Pin
echo_yao24-Jul-09 0:03
echo_yao24-Jul-09 0:03 
AnswerRe: How to realize SAFEARRAY in C++ Pin
«_Superman_»24-Jul-09 4:08
professional«_Superman_»24-Jul-09 4:08 
GeneralRe: How to realize SAFEARRAY in C++ Pin
echo_yao26-Jul-09 16:25
echo_yao26-Jul-09 16:25 
QuestionHow to identify the microphone between several microphones Pin
Guillermo198023-Jul-09 23:52
Guillermo198023-Jul-09 23:52 
AnswerRe: How to identify the microphone between several microphones Pin
Swapnil Shah24-Jul-09 0:20
Swapnil Shah24-Jul-09 0:20 
QuestionCComPtr<iwshruntimelibrary::ifilesystem xmlns:iwshruntimelibrary="#unknown"> works fine in Win2003 and fails in Win2008 Std SP2</iwshruntimelibrary::ifilesystem> Pin
V K 223-Jul-09 23:14
V K 223-Jul-09 23:14 
AnswerRe: CComPtr works fine in Win2003 and fails in Win2008 Std SP2 Pin
Adam Roderick J24-Jul-09 1:33
Adam Roderick J24-Jul-09 1:33 
QuestionHow can make Group Box text bold in Property Sheet? Pin
Le@rner23-Jul-09 22:31
Le@rner23-Jul-09 22:31 
AnswerRe: How can make Group Box text bold in Property Sheet? Pin
«_Superman_»23-Jul-09 22:36
professional«_Superman_»23-Jul-09 22:36 
AnswerRe: How can make Group Box text bold in Property Sheet? Pin
Rajesh R Subramanian23-Jul-09 22:39
professionalRajesh R Subramanian23-Jul-09 22:39 
GeneralRe: How can make Group Box text bold in Property Sheet? Pin
Le@rner23-Jul-09 23:04
Le@rner23-Jul-09 23:04 
GeneralRe: How can make Group Box text bold in Property Sheet? [modified] Pin
Michael Schubert23-Jul-09 23:16
Michael Schubert23-Jul-09 23:16 
GeneralRe: How can make Group Box text bold in Property Sheet? Pin
Le@rner23-Jul-09 23:47
Le@rner23-Jul-09 23:47 

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.