diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/hlmv/mxLineEdit2.cpp | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'utils/hlmv/mxLineEdit2.cpp')
| -rw-r--r-- | utils/hlmv/mxLineEdit2.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/hlmv/mxLineEdit2.cpp b/utils/hlmv/mxLineEdit2.cpp new file mode 100644 index 0000000..17c9090 --- /dev/null +++ b/utils/hlmv/mxLineEdit2.cpp @@ -0,0 +1,31 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include <windows.h> +#include <richedit.h> +#include "mxLineEdit2.h" + + + +mxLineEdit2::mxLineEdit2( mxWindow *parent, int x, int y, int w, int h, const char *label, int id, int style ) + : mxLineEdit( parent, x, y, w, h, label, id, style ) +{ +} + + +void mxLineEdit2::getText( char *pOut, int len ) +{ + GetWindowText( (HWND) getHandle (), pOut, len ); + pOut[len-1] = 0; +} + + +void mxLineEdit2::setText( const char *pText ) +{ + setLabel( "%s", pText ); +} + + |