Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
636 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include <windows.h>
  7. #include <richedit.h>
  8. #include "mxLineEdit2.h"
  9. mxLineEdit2::mxLineEdit2( mxWindow *parent, int x, int y, int w, int h, const char *label, int id, int style )
  10. : mxLineEdit( parent, x, y, w, h, label, id, style )
  11. {
  12. }
  13. void mxLineEdit2::getText( char *pOut, int len )
  14. {
  15. GetWindowText( (HWND) getHandle (), pOut, len );
  16. pOut[len-1] = 0;
  17. }
  18. void mxLineEdit2::setText( const char *pText )
  19. {
  20. setLabel( "%s", pText );
  21. }