CStatic m_MyStaticControl; ... // Set its text (string loaded from string table) CString text; text.LoadString( IDS_INSERT_DATA ); m_MyStaticControl.SetWindowText( text ); And, as already written, please don't use IDC_STATIC as control ID, use instead a custom (different) id...
//justtodisplaysomething st_1.text=string(xpos)+,+string(ypos) IFxpos=st_1.XAND(xpos=st_1.x+st_1.Width)AND ypos=st_1.yAND(ypos=st_1.y+st_1.Height)THEN st_1.textcolor=255 ELSE st_1.textcolor=0 ENDIF 1.18Convertanhexstringtoitsdecimalequivalent 1.21Convertanumbertohexadecimal [of...
CStatic m_MyStaticControl; ... // Set its text (string loaded from string table) CString text; text.LoadString( IDS_INSERT_DATA ); m_MyStaticControl.SetWindowText( text ); And, as already written, please don't use IDC_STATIC as control ID, use instead a custom (different) id...
CStatic m_MyStaticControl; ... // Set its text (string loaded from string table) CString text; text.LoadString( IDS_INSERT_DATA ); m_MyStaticControl.SetWindowText( text ); And, as already written, please don't use IDC_STATIC as control ID, use instead a custom (different) id...
*/ CString strSettingsLiteral; strSettingsLiteral.LoadString(IDS_REGISTRYSETTINGS); CFontUI fontWorker; /* The window is not yet created, so get a DC for the Parent. m_lfOriginal is a default from the Parent. */ CDC* pDC = m_pParent->GetDC(); CFont* pOriginalFont = m_pParent...
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { BOOL bNameValid; CString strAboutMenu; bNameValid = strAboutMenu.LoadString(IDS_ABOUTBOX); ASSERT(bNameValid); if (!strAboutMenu.IsEmpty...