EgtExecutor 2.5a3 :

- aggiunta funzione ExeMessageBox.
This commit is contained in:
DarioS
2023-01-17 11:29:59 +01:00
parent 553efdec1b
commit b1a11c4eaf
3 changed files with 41 additions and 11 deletions
+12
View File
@@ -536,6 +536,18 @@ ExeGetEnableUI( void)
return s_bEnableUI ;
}
//-----------------------------------------------------------------------------
int
ExeMessageBox( const string& sText, const string& sTitle, int nType)
{
int nRes = 0 ;
if ( ExeGetEnableUI()) {
HWND hTopWnd = ExeGetMainWindowHandle() ;
nRes = MessageBox( hTopWnd, stringtoW( sText), stringtoW( sTitle), nType | MB_TASKMODAL) ;
}
return nRes ;
}
//-----------------------------------------------------------------------------
bool
ExeSetProcessEvents( pfProcEvents pFun)