Prev: Not receiving SERVICE_CONTROL_DEVICEEVENT in NT Service For IDE CD/DVD ROM
Next: "Working set - Private" on XP
From: Windows Application on 18 Nov 2007 18:11 Hi Group: I need your kind help again. I have a console window that I want to assign it a different font than its default font. clicking on the left corner of the title bar gives me a dialogbox where I can select a font for this window. Now, I would like to do the same thing programmatically without showing a dialogbox, I have tried CreateFont() and WM_SETFONT but the new font does not replace the default one. Is there another way to do this? Also, I can not use SetCurrentConsoleFontEx() since I am using Windows XP pro, this function requires Windows Vista. Thank you... http://msdn2.microsoft.com/en-us/library/ms686200.aspx
From: Christian ASTOR on 19 Nov 2007 11:32 On 19 nov, 00:11, Windows Application <sammy_lb_2...(a)netzero.com> wrote: > I need your kind help again. I have a console window that I want > to assign it a different font than its default font. clicking on > the left corner of the title bar gives me a dialogbox where I can > select a font for this window. Now, I would like to do the same > thing programmatically without showing a dialogbox, I have tried > CreateFont() and WM_SETFONT but the new font does not replace the > default one. Is there another way to do this? > > Also, I can not use SetCurrentConsoleFontEx() since I am using > Windows XP pro, this function requires Windows Vista. SetConsoleFont() with font index.
From: Uwe Sieber on 22 Nov 2007 04:57
There are some undocumented console functions. Catch22 kindly offers sample code: http://www.catch22.net/source/files/setconsoleinfo.c Uwe Windows Application wrote: > Hi Group: > > I need your kind help again. I have a console window that I want > to assign it a different font than its default font. clicking on > the left corner of the title bar gives me a dialogbox where I can > select a font for this window. Now, I would like to do the same > thing programmatically without showing a dialogbox, I have tried > CreateFont() and WM_SETFONT but the new font does not replace the > default one. Is there another way to do this? > > Also, I can not use SetCurrentConsoleFontEx() since I am using > Windows XP pro, this function requires Windows Vista. > > Thank you... > > http://msdn2.microsoft.com/en-us/library/ms686200.aspx > |