This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

38
pop/old/SRVRDLG.CPP Normal file
View File

@@ -0,0 +1,38 @@
#include <pop/srvrdlg.hpp>
#include <common/regkey.hpp>
WORD ServerDialog::performDialog(void)
{
::DialogBoxParam(processInstance(),(LPSTR)"ServerDialog",mhParent,(DLGPROC)DWindow::DlgProc,(LONG)((DWindow*)this));
return FALSE;
}
CallbackData::ReturnType ServerDialog::initDialogHandler(CallbackData &someCallbackData)
{
if(!mServerReg.serverName().isNull())setText(ServerName,mServerReg.serverName());
return (CallbackData::ReturnType)FALSE;
}
void ServerDialog::getServerName(void)
{
String serverName;
getText(ServerName,serverName);
if(serverName.isNull())return;
mServerReg.serverName(serverName);
}
CallbackData::ReturnType ServerDialog::commandHandler(CallbackData &someCallbackData)
{
switch(someCallbackData.wmCommandID())
{
case IDOK :
getServerName();
endDialog(TRUE);
break;
case IDCANCEL :
endDialog(TRUE);
break;
}
return (CallbackData::ReturnType)FALSE;
}