BUtton Displayed: Double quatation: Macro
---
The answer is L + "Const Character":
---
---
All characters were English, so, ASCII:
---
.\wButton.cpp Fri May 29 10:35:16 2020 59 : 60 :int wButton::drawButton( HDC hdc ) { 61 : 62 : RECT rect; 63 : //SetTextColor( hdc, RGB(0 ,0, 255)); 64 : //Rectangle( hdc, rect->left, rect->top, rect->right, rect->bottom ); 65 : //DrawText( hdc, TEXT( button_name ), -1, rect, DT_NOCLIP); 66 : 67 : // Calculation of right and bottom 68 : int right = this->x + this->width; 69 : int bottom = this->y + this->height; 70 : 71 : SetRect(&rect, this->x, this->y, right, bottom); 72 : 73 : if ( this->mode == 0 ) 74 : SetTextColor( hdc, RGB( 0 ,0, 255 ) ); 75 : else 76 : SetTextColor( hdc, RGB( 255 ,0, 0 ) ); 77 : 78 : Rectangle( hdc, rect.left, rect.top, rect.right, rect.bottom ); 79 : DrawText( hdc, (LPWSTR)( this->button_name ), -1, &rect, DT_NOCLIP); 80 : 81 : return 1; 82 :} 83 : 84 :
----
Changed:
Modified:
----
in Visual C++ 2019:
Parameters: defined: WinUser.h
/*
* DrawText() Format Flags
*/
#define DT_TOP 0x00000000
#define DT_LEFT 0x00000000
#define DT_CENTER 0x00000001
#define DT_RIGHT 0x00000002
#define DT_VCENTER 0x00000004
#define DT_BOTTOM 0x00000008
#define DT_WORDBREAK 0x00000010
#define DT_SINGLELINE 0x00000020
#define DT_EXPANDTABS 0x00000040
#define DT_TABSTOP 0x00000080
#define DT_NOCLIP 0x00000100
#define DT_EXTERNALLEADING 0x00000200
#define DT_CALCRECT 0x00000400
#define DT_NOPREFIX 0x00000800
#define DT_INTERNAL 0x00001000
---