SetFont "MS Shell Dlg" adds the DS_SHELLFONT style
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1941 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ae7f73fc27
commit
6189c91047
1 changed files with 10 additions and 2 deletions
|
@ -251,13 +251,21 @@ void CDialogTemplate::RemoveItem(WORD wId) {
|
|||
|
||||
// Sets the font of the dialog
|
||||
void CDialogTemplate::SetFont(char* szFaceName, WORD wFontSize) {
|
||||
m_dwStyle &= ~DS_SHELLFONT;
|
||||
if (lstrcmp(szFaceName, "MS Shell Dlg")) {
|
||||
// not MS Shell Dlg
|
||||
m_dwStyle &= ~DS_SHELLFONT;
|
||||
m_bExtended = false;
|
||||
}
|
||||
else {
|
||||
// MS Shell Dlg
|
||||
m_dwStyle |= DS_SHELLFONT;
|
||||
m_bExtended = true;
|
||||
}
|
||||
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