Need to change the Default Font of Control in my win32 code
-
Hello all, I working on one win32 application. I need to change the font of my controls. This can be done by sending WM_SETFONT message to the control. but it need hFont as WPARAM. and to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
-
Hello all, I working on one win32 application. I need to change the font of my controls. This can be done by sending WM_SETFONT message to the control. but it need hFont as WPARAM. and to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
I believe you are wrong with that, CreateFont, CreateFontIndirect and such API calls can be used without MFC.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Hello all, I working on one win32 application. I need to change the font of my controls. This can be done by sending WM_SETFONT message to the control. but it need hFont as WPARAM. and to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
zakkas2483 wrote:
...to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
zakkas2483 wrote:
...to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
I m getting Error Message "CreateFont: identifier not found".
-
I m getting Error Message "CreateFont: identifier not found".
Sounds like you're not including the right files. Check the dependencies for that function.