home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ufcpp.zip
/
UFSAMPUF.CPP
< prev
Wrap
C/C++ Source or Header
|
1993-12-20
|
915b
|
21 lines
#define INCL_WIN
#include <os2.h>
#include "ufsamp.ext"
void ClassMainWindow::UFCopy12(void) {
char sBuf[100];
WinQueryWindowText(EntryField1.GetSafeControlHwnd(),sizeof(sBuf),sBuf);
WinSetWindowText(EntryField2.GetSafeControlHwnd(),sBuf);
}
//===== End Of Code ==========//
//===== Begin of explanations =====//
// The UFCopy12 function is declared as a member-function in the MainWindow
// looks like: "public: void UFCopy12(void);" (see Member Objects at
// MainWindow).
// Although this function is used as an action, attached to PushButton2,
// this is a MainWindow member rather than a PushButton1 member (according
// to the operations in this function). The EntryField1 and EntryField2
// fields are members of the ClassMainWindow class, so we can use them
// without prefixes.
// The User Function Object looks like: MainWindow->UFCopy12();
//===== End of explanations =====//