home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
hansn.zip
/
HANSNUF.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-26
|
773b
|
22 lines
#define INCL_WIN
#include <os2.h>
#include "HansN.Ext"
#include "HansN.Ids"
void ClassMain::UFMainShowWin2(void) {
char sBuf[100];
WinQueryWindowText(Main_Ef_Crt.GetSafeControlHwnd(),sizeof(sBuf),&sBuf[0]);
// the same as:
// WinQueryDlgItemText(hwnd,ID_MAIN_EF_CRT,sizeof(sBuf),&sBuf[0]);
ShowWin2((PVOID)sBuf);
}
// This function is a ClassMain member, but can be called for any
// window/dialog by typecasting. Of course, you can use just GpfWindow
// fields. A User Function Object, attached to some button on your
// current window to call this function, looks like:
// ( (ClassMain*)GetSafeParentWindow() ) -> UFWin2GetCrt();
//
void ClassMain::UFWin2GetCrt(void) {
WinSetWindowText(GetSafeHwndFrame(), (PCSZ)pCrtParms);
}