Click here to Skip to main content
15,924,317 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFinding Audio Level Pin
nagsa4-May-06 1:14
nagsa4-May-06 1:14 
AnswerRe: Finding Audio Level Pin
Hamid_RT4-May-06 1:25
Hamid_RT4-May-06 1:25 
QuestionRe: Finding Audio Level Pin
David Crow4-May-06 2:24
David Crow4-May-06 2:24 
AnswerRe: Finding Audio Level Pin
Hamid_RT4-May-06 3:34
Hamid_RT4-May-06 3:34 
GeneralRe: Finding Audio Level Pin
David Crow4-May-06 3:40
David Crow4-May-06 3:40 
QuestionRe: Finding Audio Level Pin
Hamid_RT4-May-06 3:57
Hamid_RT4-May-06 3:57 
QuestionIncrease the Font of a Static Controls in DialogBox Controls Pin
kiran janaswamy4-May-06 1:06
kiran janaswamy4-May-06 1:06 
AnswerRe: Increase the Font of a Static Controls in DialogBox Controls Pin
-Dy4-May-06 1:18
-Dy4-May-06 1:18 
kiran janaswamy wrote:
i want to Increase the Font of the Labels


In the definition of your dialog (the .h file), include a CFont object (m_font). Initialise that font object in your constructor:
// example only, use the large font you're after:
LOGFONT lf;
NONCLIENTMETRICS ncm;

ncm.cbSize = sizeof(ncm);
VERIFY(SystemParametersInfo(SPI_GETNONCLIENTMETRICS, ncm.cbSize, &ncm, 0));
memcpy(&lf, &ncm.lfMessageFont, sizeof(LOGFONT));
m_font.CreateFontIndirect(&lf);


Then in your OnInitDialog, get the CStatic object for the ontrol, and set it's font. Remember, you need to have named the object in the resources something other then IDC_STATIC.
CWnd *wnd = GetDlgItem(IDC_YOURCTRL);
ASSERT(wnd);
if (wnd) wnd->SetFont(&m_font);


kiran janaswamy wrote:
before all the Controls.


Sorry, I don't understand what it is you're after with this bit.



- Dy
AnswerRe: Increase the Font of a Static Controls in DialogBox Controls Pin
Hamid_RT4-May-06 1:22
Hamid_RT4-May-06 1:22 
GeneralRe: Increase the Font of a Static Controls in DialogBox Controls Pin
kiran janaswamy4-May-06 1:30
kiran janaswamy4-May-06 1:30 
QuestionBreakpoint setting Pin
Anu_Bala4-May-06 0:39
Anu_Bala4-May-06 0:39 
AnswerRe: Breakpoint setting Pin
Cedric Moonen4-May-06 0:55
Cedric Moonen4-May-06 0:55 
AnswerRe: Breakpoint setting Pin
Nibu babu thomas4-May-06 0:57
Nibu babu thomas4-May-06 0:57 
AnswerRe: Breakpoint setting Pin
Hamid_RT4-May-06 1:22
Hamid_RT4-May-06 1:22 
GeneralRe: Breakpoint setting Pin
Anu_Bala4-May-06 1:43
Anu_Bala4-May-06 1:43 
GeneralRe: Breakpoint setting Pin
Hamid_RT4-May-06 1:49
Hamid_RT4-May-06 1:49 
AnswerRe: Breakpoint setting Pin
Stephen Hewitt4-May-06 16:00
Stephen Hewitt4-May-06 16:00 
QuestionStartup option changed to manual from Automatic Pin
nagalakshmi.karunanidhi4-May-06 0:15
nagalakshmi.karunanidhi4-May-06 0:15 
AnswerRe: Startup option changed to manual from Automatic Pin
toxcct4-May-06 0:31
toxcct4-May-06 0:31 
AnswerRe: Startup option changed to manual from Automatic Pin
Monty24-May-06 0:31
Monty24-May-06 0:31 
QuestionWndProc Pin
HakunaMatada3-May-06 23:58
HakunaMatada3-May-06 23:58 
AnswerRe: WndProc Pin
Cedric Moonen4-May-06 0:04
Cedric Moonen4-May-06 0:04 
AnswerRe: WndProc Pin
Stephen Hewitt4-May-06 0:28
Stephen Hewitt4-May-06 0:28 
GeneralRe: WndProc Pin
HakunaMatada4-May-06 0:35
HakunaMatada4-May-06 0:35 
GeneralRe: WndProc Pin
Stephen Hewitt4-May-06 15:59
Stephen Hewitt4-May-06 15:59 

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.