Temporary solution to make SetFont work again
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1811 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
20e2277078
commit
1fc6f94b86
2 changed files with 7 additions and 4 deletions
|
@ -247,11 +247,14 @@ void CDialogTemplate::RemoveItem(WORD wId) {
|
|||
|
||||
// Sets the font of the dialog
|
||||
void CDialogTemplate::SetFont(char* szFaceName, WORD wFontSize) {
|
||||
m_dwStyle |= DS_SETFONT;
|
||||
m_dwStyle &= ~DS_SHELLFONT;
|
||||
m_dwStyle &= ~DS_FIXEDSYS;
|
||||
m_dwStyle |= DS_SETFONT;
|
||||
if (m_szFont) delete [] m_szFont;
|
||||
m_szFont = new char[lstrlen(szFaceName)];
|
||||
lstrcpy(m_szFont, szFaceName);
|
||||
m_sFontSize = wFontSize;
|
||||
m_bExtended = false;
|
||||
}
|
||||
|
||||
// Adds an item to the dialog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue