@@ -103,10 +103,12 @@ int NoMeiryoUI::OnAppliStart(TCHAR *lpCmdLine)
} else {
// Windows 8/8.1
WIN8_SIZE = true ;
use7Compat = true ;
}
} else {
// Windows 10 or later
WIN8_SIZE = tru e;
WIN8_SIZE = fals e;
use7Compat = false ;
}
return 0 ;
@@ -377,7 +379,7 @@ INT_PTR NoMeiryoUI::OnCommand(WPARAM wParam)
return ( INT_PTR ) 0 ;
case IDM_ABOUT :
MessageBox ( hWnd ,
_T ( " Meiryo UI<55> <49> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 炢!! Version 2.16 Beta 2 \n \n By Tatsuhiko Syoji(Tatsu) 2005,2012-2015 " ) ,
_T ( " Meiryo UI<55> <49> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 炢!! Version 2.16 \n \n By Tatsuhiko Syoji(Tatsu) 2005,2012-2015 " ) ,
_T ( " Meiryo UI<55> <49> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 炢!!<21> ɂ <C982> <C282> <EFBFBD> " ) ,
MB_OK | MB_ICONINFORMATION ) ;
@@ -1066,11 +1068,33 @@ void NoMeiryoUI::OnBnClickedAll()
updateDisplay ( ) ;
}
/**
* <20> V<EFBFBD> X<EFBFBD> e<EFBFBD> <65> <EFBFBD> <EFBFBD> DPI<50> <49> <EFBFBD> 擾<EFBFBD> <E693BE> <EFBFBD> <EFBFBD> <EFBFBD> B
*
* @return <20> 擾<EFBFBD> <E693BE> <EFBFBD> <EFBFBD> DPI
*/
int NoMeiryoUI : : getDPI ( void )
{
// DPI<50> <49> <EFBFBD> 擾<EFBFBD> <E693BE> <EFBFBD> <EFBFBD> <EFBFBD> B
int dpiY = 96 ;
HDC hdc = GetDC ( NULL ) ;
if ( hdc ) {
dpiY = GetDeviceCaps ( hdc , LOGPIXELSY ) ;
ReleaseDC ( NULL , hdc ) ;
}
return dpiY ;
}
/**
* Windows 8/8.1<EFBFBD> ̏ꍇ<EFBFBD> ̃v<EFBFBD> <EFBFBD> <EFBFBD> Z<EFBFBD> b<EFBFBD> g<EFBFBD> l<EFBFBD> <EFBFBD> <EFBFBD> ݒ肷<EFBFBD> <EFBFBD> <EFBFBD> B
*/
void NoMeiryoUI : : OnSet8 ( void )
{
// DPI<50> <49> <EFBFBD> 擾<EFBFBD> <E693BE> <EFBFBD> <EFBFBD> <EFBFBD> B
int dpiY = getDPI ( ) ;
// <20> t<EFBFBD> H<EFBFBD> <48> <EFBFBD> g<EFBFBD> ȊO<C88A> <4F> NONCLIENTMETRICS<43> ̌<EFBFBD> <CC8C> ݒl<DD92> <6C> <EFBFBD> ێ<EFBFBD> <DB8E> <EFBFBD> <EFBFBD> 邽<EFBFBD> ߁A
// NONCLIENTMETRICS<43> ̓<EFBFBD> <CC93> e<EFBFBD> <65> <EFBFBD> 擾<EFBFBD> <E693BE> <EFBFBD> Ȃ<EFBFBD> <C882> <EFBFBD> <EFBFBD> B
FillMemory ( & metrics , sizeof ( NONCLIENTMETRICS ) , 0x00 ) ;
@@ -1082,39 +1106,45 @@ void NoMeiryoUI::OnSet8(void)
memset ( & metrics . lfCaptionFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfCaptionFont . lfFaceName , _T ( " Meiryo UI " ) ) ;
metrics . lfCaptionFont . lfHeight = - 15 ;
metrics . lfCaptionFont . lfHeight = MulDiv ( - 15 , dpiY , 96 ) ;
metrics . lfCaptionFont . lfWeight = 400 ;
metrics . lfCaptionFont . lfCharSet = 1 ;
metrics . lfCaptionFont . lfQuality = 5 ;
memset ( & iconFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( iconFont . lfFaceName , _T ( " Meiryo UI " ) ) ;
iconFont . lfHeight = - 12 ;
iconFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
iconFont . lfWeight = 400 ;
iconFont . lfCharSet = 1 ;
iconFont . lfQuality = 5 ;
memset ( & metrics . lfSmCaptionFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfSmCaptionFont . lfFaceName , _T ( " Meiryo UI " ) ) ;
metrics . lfSmCaptionFont . lfHeight = - 15 ;
metrics . lfSmCaptionFont . lfHeight = MulDiv ( - 15 , dpiY , 96 ) ;
metrics . lfSmCaptionFont . lfWeight = 400 ;
metrics . lfSmCaptionFont . lfCharSet = 1 ;
metrics . lfSmCaptionFont . lfQuality = 5 ;
memset ( & metrics . lfStatusFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfStatusFont . lfFaceName , _T ( " Meiryo UI " ) ) ;
metrics . lfStatusFont . lfHeight = - 12 ;
metrics . lfStatusFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfStatusFont . lfWeight = 400 ;
metrics . lfStatusFont . lfCharSet = 1 ;
metrics . lfStatusFont . lfQuality = 5 ;
memset ( & metrics . lfMessageFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfMessageFont . lfFaceName , _T ( " Meiryo UI " ) ) ;
metrics . lfMessageFont . lfHeight = - 12 ;
metrics . lfMessageFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfMessageFont . lfWeight = 400 ;
metrics . lfMessageFont . lfCharSet = 1 ;
metrics . lfMessageFont . lfQuality = 5 ;
memset ( & metrics . lfMenuFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfMenuFont . lfFaceName , _T ( " Meiryo UI " ) ) ;
metrics . lfMenuFont . lfHeight = - 12 ;
metrics . lfMenuFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfMenuFont . lfWeight = 400 ;
metrics . lfMenuFont . lfCharSet = 1 ;
metrics . lfMenuFont . lfQuality = 5 ;
// <20> \<5C> <> <EFBFBD> <EFBFBD> <EFBFBD> X<EFBFBD> V<EFBFBD> <56> <EFBFBD> <EFBFBD> <EFBFBD> B
updateDisplay ( ) ;
@@ -1122,10 +1152,13 @@ void NoMeiryoUI::OnSet8(void)
}
/**
* Windows 10<31> ̏ꍇ<CC8F> ̃v<CC83> <76> <EFBFBD> Z<EFBFBD> b<EFBFBD> g<EFBFBD> l<EFBFBD> <6C> <EFBFBD> ݒ肷<DD92> <E882B7> <EFBFBD> B
*/
* Windows 10<31> ̏ꍇ<CC8F> ̃v<CC83> <76> <EFBFBD> Z<EFBFBD> b<EFBFBD> g<EFBFBD> l<EFBFBD> <6C> <EFBFBD> ݒ肷<DD92> <E882B7> <EFBFBD> B
*/
void NoMeiryoUI : : OnSet10 ( void )
{
// DPI<50> <49> <EFBFBD> 擾<EFBFBD> <E693BE> <EFBFBD> <EFBFBD> <EFBFBD> B
int dpiY = getDPI ( ) ;
// <20> t<EFBFBD> H<EFBFBD> <48> <EFBFBD> g<EFBFBD> ȊO<C88A> <4F> NONCLIENTMETRICS<43> ̌<EFBFBD> <CC8C> ݒl<DD92> <6C> <EFBFBD> ێ<EFBFBD> <DB8E> <EFBFBD> <EFBFBD> 邽<EFBFBD> ߁A
// NONCLIENTMETRICS<43> ̓<EFBFBD> <CC93> e<EFBFBD> <65> <EFBFBD> 擾<EFBFBD> <E693BE> <EFBFBD> Ȃ<EFBFBD> <C882> <EFBFBD> <EFBFBD> B
FillMemory ( & metrics , sizeof ( NONCLIENTMETRICS ) , 0x00 ) ;
@@ -1137,39 +1170,45 @@ void NoMeiryoUI::OnSet10(void)
memset ( & metrics . lfCaptionFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfCaptionFont . lfFaceName , _T ( " Yu Gothic UI " ) ) ;
metrics . lfCaptionFont . lfHeight = - 12 ;
metrics . lfCaptionFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfCaptionFont . lfWeight = 400 ;
metrics . lfCaptionFont . lfCharSet = 1 ;
metrics . lfCaptionFont . lfQuality = 5 ;
memset ( & iconFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( iconFont . lfFaceName , _T ( " Yu Gothic UI " ) ) ;
iconFont . lfHeight = - 12 ;
iconFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
iconFont . lfWeight = 400 ;
iconFont . lfCharSet = 1 ;
iconFont . lfQuality = 5 ;
memset ( & metrics . lfSmCaptionFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfSmCaptionFont . lfFaceName , _T ( " Yu Gothic UI " ) ) ;
metrics . lfSmCaptionFont . lfHeight = - 12 ;
metrics . lfSmCaptionFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfSmCaptionFont . lfWeight = 400 ;
metrics . lfSmCaptionFont . lfCharSet = 1 ;
metrics . lfSmCaptionFont . lfQuality = 5 ;
memset ( & metrics . lfStatusFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfStatusFont . lfFaceName , _T ( " Yu Gothic UI " ) ) ;
metrics . lfStatusFont . lfHeight = - 12 ;
metrics . lfStatusFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfStatusFont . lfWeight = 400 ;
metrics . lfStatusFont . lfCharSet = 1 ;
metrics . lfStatusFont . lfQuality = 5 ;
memset ( & metrics . lfMessageFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfMessageFont . lfFaceName , _T ( " Yu Gothic UI " ) ) ;
metrics . lfMessageFont . lfHeight = - 12 ;
metrics . lfMessageFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfMessageFont . lfWeight = 400 ;
metrics . lfMessageFont . lfCharSet = 1 ;
metrics . lfMessageFont . lfQuality = 5 ;
memset ( & metrics . lfMenuFont , 0 , sizeof ( LOGFONTW ) ) ;
_tcscpy ( metrics . lfMenuFont . lfFaceName , _T ( " Yu Gothic UI " ) ) ;
metrics . lfMenuFont . lfHeight = - 12 ;
metrics . lfMenuFont . lfHeight = MulDiv ( - 12 , dpiY , 96 ) ;
metrics . lfMenuFont . lfWeight = 400 ;
metrics . lfMenuFont . lfCharSet = 1 ;
metrics . lfMenuFont . lfQuality = 5 ;
// <20> \<5C> <> <EFBFBD> <EFBFBD> <EFBFBD> X<EFBFBD> V<EFBFBD> <56> <EFBFBD> <EFBFBD> <EFBFBD> B
updateDisplay ( ) ;