Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Constructor problem - setting members Pin
bneacetp7-Jun-04 0:29
bneacetp7-Jun-04 0:29 
GeneralRe: Constructor problem - setting members Pin
thowra7-Jun-04 1:01
thowra7-Jun-04 1:01 
GeneralCreate a GUID to uniquely identify a machine. Pin
Member 11501767-Jun-04 0:06
Member 11501767-Jun-04 0:06 
GeneralRe: Create a GUID to uniquely identify a machine. Pin
Anonymous7-Jun-04 1:58
Anonymous7-Jun-04 1:58 
GeneralRe: Create a GUID to uniquely identify a machine. Pin
Joel Lucsy8-Jun-04 2:59
Joel Lucsy8-Jun-04 2:59 
QuestionHow to set Font of CStatic Control through Program.. Pin
Sumit Kapoor6-Jun-04 23:59
Sumit Kapoor6-Jun-04 23:59 
AnswerRe: How to set Font of CStatic Control through Program.. Pin
bneacetp7-Jun-04 0:18
bneacetp7-Jun-04 0:18 
GeneralRe: Still not work...also Pin
Sumit Kapoor7-Jun-04 0:34
Sumit Kapoor7-Jun-04 0:34 
Hi..thanks for reply....

I create font by using this code:

CFont font;
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT)); // zero out structure
lf.lfHeight = 22;
// request a 12-pixel-height font
strcpy(lf.lfFaceName, "Arial"); // request a face name "Arial"
font.CreateFontIndirect(&lf); // create the font


//then create

CStatic ArrayCaption;
ArrayCaption.Create(NULL,WS_CHILD|WS_VISIBLE,CRect(10,17,450,65),this,123);

ArrayCaption.SetWindowText("Sumit Kapoor");
// mine try...
//ArrayCaption.SetFont(&font)

// then your hint one but not working
GetDlgItem(123)->SetFont(&font);


you can copy paste this code & check..if doubt...
Thanks for help..bye





---Sumit Kapoor---
GeneralRe: Still not work...also Pin
Johan Rosengren7-Jun-04 3:26
Johan Rosengren7-Jun-04 3:26 
GeneralRe: Forget ALSO... Pin
Sumit Kapoor7-Jun-04 0:36
Sumit Kapoor7-Jun-04 0:36 
GeneralRe: Forget ALSO... Pin
jmkhael7-Jun-04 4:50
jmkhael7-Jun-04 4:50 
GeneralNavigating through CForimView controls Pin
dart136-Jun-04 23:59
dart136-Jun-04 23:59 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren7-Jun-04 6:10
Johan Rosengren7-Jun-04 6:10 
GeneralRe: Navigating through CForimView controls Pin
dart138-Jun-04 1:07
dart138-Jun-04 1:07 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren8-Jun-04 1:24
Johan Rosengren8-Jun-04 1:24 
GeneralPrblm in video capturing Pin
Zeeshan Bilal6-Jun-04 23:32
Zeeshan Bilal6-Jun-04 23:32 
QuestionRetrieving control's original class by its ID? Pin
Daredevil6-Jun-04 23:13
Daredevil6-Jun-04 23:13 
AnswerRe: Retrieving control's original class by its ID? Pin
Andrew Quinn AUS6-Jun-04 23:33
Andrew Quinn AUS6-Jun-04 23:33 
AnswerRe: Retrieving control's original class by its ID? Pin
David Crow7-Jun-04 2:10
David Crow7-Jun-04 2:10 
GeneralCIndexes help required.. Pin
Chris Ulliott6-Jun-04 23:12
Chris Ulliott6-Jun-04 23:12 
Generalcommunication on serial port com Pin
jetournier6-Jun-04 21:57
jetournier6-Jun-04 21:57 
GeneralCreate menu !!! Icon Pin
Qdlaty6-Jun-04 21:48
Qdlaty6-Jun-04 21:48 
GeneralChange Header & Footer when use CHtmlView Pin
MachineMHK6-Jun-04 21:36
MachineMHK6-Jun-04 21:36 
QuestionA simple way to encrypt/decrypt a CString? Pin
anderslundsgard6-Jun-04 21:25
anderslundsgard6-Jun-04 21:25 
AnswerRe: A simple way to encrypt/decrypt a CString? Pin
Brian Delahunty6-Jun-04 21:39
Brian Delahunty6-Jun-04 21:39 

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.