Click here to Skip to main content
15,909,827 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ Callbacks Issue - Auto Callbacks Pin
the one dono15-May-05 4:47
the one dono15-May-05 4:47 
GeneralRe: Visual C++ Callbacks Issue - Auto Callbacks Pin
Axonn Echysttas15-May-05 5:47
Axonn Echysttas15-May-05 5:47 
GeneralRe: Visual C++ Callbacks Issue - Auto Callbacks Pin
the one dono15-May-05 6:34
the one dono15-May-05 6:34 
GeneralRe: Visual C++ Callbacks Issue - Auto Callbacks Pin
Axonn Echysttas15-May-05 11:59
Axonn Echysttas15-May-05 11:59 
GeneralRe: Visual C++ Callbacks Issue - Auto Callbacks Pin
ThatsAlok15-May-05 18:27
ThatsAlok15-May-05 18:27 
GeneralRe: Visual C++ Callbacks Issue - Auto Callbacks Pin
Axonn Echysttas16-May-05 2:08
Axonn Echysttas16-May-05 2:08 
QuestionGetting WM_DROPFILES from child control? Pin
matthew18014-May-05 19:26
matthew18014-May-05 19:26 
GeneralAddFontResource Pin
Inov14-May-05 16:52
Inov14-May-05 16:52 
How to use "AddFontResource" ?
I've read an article about it on MSDN Library, but I still confused with.

It's declared at wingdi.h (Included at windows.h)
int AddFontResource(<br />
  LPCTSTR lpszFilename   // font file name<br />
);


I have a code:
<br />
...<br />
<br />
#define IDC_STATIC_TEXT 5007<br />
<br />
...<br />
<br />
case WM_CREATE:<br />
		CreateWindow ("STATIC", "-- WinTest --\nApplication created by Inov",<br />
			WS_CHILD | WS_VISIBLE | SS_CENTER,<br />
			0, 40, 290, 120,<br />
			hWnd, (HMENU) IDC_STATIC_TEXT, hInst, NULL);<br />
<br />
		SendDlgItemMessage (hWnd, IDC_STATIC_TEXT, WM_SETFONT,<br />
			(WPARAM) AddFontResource ("C:\\Fonts\\Verdana.ttf"), 0);<br />
		break;<br />
<br />
...<br />

I am going to make my static text font to be Verdana, but I couldn't.

[ ++ Inov ++ ]
GeneralRe: AddFontResource Pin
Jack Puppy14-May-05 17:38
Jack Puppy14-May-05 17:38 
Generaldialog box Pin
rain71114-May-05 14:57
rain71114-May-05 14:57 
GeneralRe: dialog box Pin
David Crow15-May-05 16:28
David Crow15-May-05 16:28 
GeneralRe: dialog box Pin
rain71122-May-05 3:47
rain71122-May-05 3:47 
GeneralRe: dialog box Pin
David Crow23-May-05 1:56
David Crow23-May-05 1:56 
GeneralRe: dialog box Pin
ThatsAlok15-May-05 18:35
ThatsAlok15-May-05 18:35 
GeneralRe: dialog box Pin
rain71122-May-05 3:50
rain71122-May-05 3:50 
GeneralHTML parser Pin
princess sarah14-May-05 12:21
princess sarah14-May-05 12:21 
GeneralRe: HTML parser Pin
Jack Puppy14-May-05 15:35
Jack Puppy14-May-05 15:35 
GeneralRe: HTML parser Pin
princess sarah14-May-05 19:45
princess sarah14-May-05 19:45 
GeneralRe: HTML parser Pin
Jack Puppy14-May-05 20:29
Jack Puppy14-May-05 20:29 
GeneralRe: HTML parser Pin
princess sarah14-May-05 23:01
princess sarah14-May-05 23:01 
GeneralIrene Pin
irene_haydon14-May-05 10:22
irene_haydon14-May-05 10:22 
GeneralRe: Irene Pin
PJ Arends14-May-05 10:40
professionalPJ Arends14-May-05 10:40 
GeneralRe: Irene Pin
Andrew Kirillov14-May-05 10:40
Andrew Kirillov14-May-05 10:40 
GeneralWM_SHOWWINDOW Pin
SJFreeland14-May-05 9:53
SJFreeland14-May-05 9:53 
Generallearning to work with SDKs and source code... Pin
psasidisrcum14-May-05 9:35
psasidisrcum14-May-05 9: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.