Click here to Skip to main content
16,012,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: graphic.h in Visual c++ Pin
ThatsAlok17-Mar-06 0:53
ThatsAlok17-Mar-06 0:53 
GeneralRe: graphic.h in Visual c++ Pin
Aqueel17-Mar-06 18:36
Aqueel17-Mar-06 18:36 
GeneralRe: graphic.h in Visual c++ Pin
ThatsAlok17-Mar-06 21:14
ThatsAlok17-Mar-06 21:14 
QuestionHelp with set SQL cursor to SQL_SCROLLABLE Pin
nhuythanh16-Mar-06 16:03
nhuythanh16-Mar-06 16:03 
AnswerRe: Help with set SQL cursor to SQL_SCROLLABLE Pin
Gerald Schwab16-Mar-06 17:28
Gerald Schwab16-Mar-06 17:28 
QuestionText color in an Edit Control Pin
Joy Anne16-Mar-06 15:39
Joy Anne16-Mar-06 15:39 
AnswerRe: Text color in an Edit Control Pin
Stephen Hewitt16-Mar-06 15:52
Stephen Hewitt16-Mar-06 15:52 
AnswerRe: Text color in an Edit Control Pin
snowheavy16-Mar-06 15:58
snowheavy16-Mar-06 15:58 
//======================== Member variables ===========================//
CFont m_Font;
CEdit m_Eidt;

//====================== Some where ===================================//
m_Edit.Create(WS_VISIBLE|WS_CHILD|WS_BORDER|ES_AUTOHSCROLL,
CRect(100,100,500,150),
this,
8888);

//============================== Set the font of a control ===================//
LOGFONT lf;

//===== Initialize the LOGFONT structure =============//
lf.lfHeight = 0 ;
lf.lfWidth = 0 ;
lf.lfEscapement = 0 ;
lf.lfOrientation = 0 ;
lf.lfWeight = 400 ;
lf.lfItalic = FALSE ;
lf.lfUnderline = 0 ;
lf.lfStrikeOut = 0 ;
lf.lfCharSet = ANSI_CHARSET ;
lf.lfOutPrecision = OUT_DEFAULT_PRECIS ;
lf.lfClipPrecision = CLIP_DEFAULT_PRECIS ;
lf.lfQuality = DEFAULT_QUALITY ;
lf.lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;

lstrcpy(lf.lfFaceName, "CommercialScript BT") ;

//============= Set the font of the control ===============//
m_Font.CreateFontIndirect(&lf);
m_Edit.SetFont(&m_Font);

///// The end /////
GeneralRe: Text color in an Edit Control Pin
Naveen16-Mar-06 16:03
Naveen16-Mar-06 16:03 
AnswerRe: Text color in an Edit Control Pin
John R. Shaw16-Mar-06 16:25
John R. Shaw16-Mar-06 16:25 
AnswerRe: Text color in an Edit Control Pin
Hamid_RT16-Mar-06 17:02
Hamid_RT16-Mar-06 17:02 
QuestionPlace to save Wnd position Pin
Richard Andrew x6416-Mar-06 14:03
professionalRichard Andrew x6416-Mar-06 14:03 
AnswerRe: Place to save Wnd position Pin
bob1697216-Mar-06 15:41
bob1697216-Mar-06 15:41 
GeneralRe: Place to save Wnd position Pin
Richard Andrew x6416-Mar-06 16:07
professionalRichard Andrew x6416-Mar-06 16:07 
QuestionTurn Off monitor?????? Pin
AhmedOsamaMoh16-Mar-06 13:36
AhmedOsamaMoh16-Mar-06 13:36 
AnswerRe: Turn Off monitor?????? Pin
Chris Gao16-Mar-06 15:29
Chris Gao16-Mar-06 15:29 
AnswerRe: Turn Off monitor?????? Pin
Xing Chen16-Mar-06 16:01
Xing Chen16-Mar-06 16:01 
QuestionHow to generate a new icon at runtime for MFC tree control Pin
lastgen16-Mar-06 13:15
lastgen16-Mar-06 13:15 
AnswerRe: How to generate a new icon at runtime for MFC tree control Pin
Stephen Hewitt16-Mar-06 13:30
Stephen Hewitt16-Mar-06 13:30 
AnswerRe: How to generate a new icon at runtime for MFC tree control Pin
Hamid_RT16-Mar-06 17:56
Hamid_RT16-Mar-06 17:56 
AnswerRe: How to generate a new icon at runtime for MFC tree control Pin
Hamid_RT16-Mar-06 19:38
Hamid_RT16-Mar-06 19:38 
Questionexport function in DLL Pin
yongwpi16-Mar-06 11:39
yongwpi16-Mar-06 11:39 
AnswerRe: export function in DLL Pin
Richard Andrew x6416-Mar-06 14:24
professionalRichard Andrew x6416-Mar-06 14:24 
GeneralRe: export function in DLL Pin
yongwpi16-Mar-06 14:27
yongwpi16-Mar-06 14:27 
QuestionMultiple Displays problem- how to get the absolute coordinates Pin
Checker200316-Mar-06 9:59
Checker200316-Mar-06 9: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.