Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 94 results for
setdlgitemtext
- Page 1
SetDlgItemText glitching (old text staying on window)
Programming
Software Development
14 Years Ago
by shea279
OK so I'm using the function
SetDlgItemText
() to change the text in a static text control of …
new to windows apps
Programming
Software Development
19 Years Ago
by blackdove
…int result = op1 / op2; m_result.Format("%d", result); }
SetDlgItemText
(IDC_RESULT, m_result); } void CHexcalcDlg::OnHextodec() { // TODO: Add your control…int result = op1 * op2; m_result.Format("%d", result);
SetDlgItemText
(IDC_RESULT, m_result); } void CHexcalcDlg::OnSubtract() { // TODO: Add your…
Re: new to windows apps
Programming
Software Development
19 Years Ago
by blackdove
… notification handler code here GetDlgItemText(IDC_OP1, m_op1); m_result = ConvertHexToDec(m_op1);
SetDlgItemText
(IDC_RESULT, m_result); } [/CODE] i cant figure it out. when i…
Re: new to windows apps
Programming
Software Development
19 Years Ago
by blackdove
… code here GetDlgItemText(IDC_OP1, m_op1); ConvertDecToHex(m_result, atoi((LPCTSTR) m_op1));
SetDlgItemText
(IDC_RESULT, m_result); } [/CODE] when i run it the program freezes…
Re: new to windows apps
Programming
Software Development
19 Years Ago
by BountyX
Try this, i think atoi() might be the problem if your dealing with unicode strings. [CODE] [left]void CHexcalcDlg::OnDectohex() { // TODO: Add your control notification handler code here GetDlgItemText(IDC_OP1, m_op1); ConvertDecToHex(m_result, _ttoi((LPCTSTR) m_op1));
SetDlgItemText
(IDC_RESULT, m_result); } [/left] [/CODE] [left] [/left]
Re: new to windows apps
Programming
Software Development
19 Years Ago
by BountyX
…: Add your control notification handler code here GetDlgItemText(IDC_OP1, m_op1);
SetDlgItemText
(IDC_RESULT, (LPTCSTR)ConvertDecToHex(_ttoi((LPCTSTR) m_op1))); } [left][/code][/left…
my first recursion program... :/
Programming
Software Development
19 Years Ago
by blackdove
…{ m_palindrome.Format("%d", "Yes");
SetDlgItemText
(IDC_PALINDROME, m_palindrome); } else if(palindrome(number, length) ==…) { m_palindrome.Format("%d", "No");
SetDlgItemText
(IDC_PALINDROME, m_palindrome); } } bool CLab13Dlg::palindrome(int number, int…
inputing words in listboxes in API
Programming
Software Development
14 Years Ago
by goody11
… box, and initialise any default values
SetDlgItemText
(hwnd, IDC_TEXT, "Spanish");
SetDlgItemText
(hwnd, IDC_OTEXT, "English");… one // Either way, we aren't going to process this.
SetDlgItemText
(hwnd, IDC_SHOWCOUNT, "-"); } } else { MessageBox(hwnd…
Loading and Setting text
Programming
Software Development
14 Years Ago
by goody11
…, and initialise any default values
SetDlgItemText
(hwnd2, IDC_STEXT, " Spanish");
SetDlgItemText
(hwnd2, IDC_ETEXT, " English");
SetDlgItemText
(hwnd2, IDC_POSTEXT, "Part of…
Windows API Dialog problem
Programming
Software Development
13 Years Ago
by tomtetlaw
… wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: {
SetDlgItemText
(hwnd, IDL_FILE, assert_file);
SetDlgItemText
(hwnd, IDL_LINE, assert_line);
SetDlgItemText
(hwnd, IDL_ASSERT, assert_exp); for(dictionary_t<char…
Memory leak in game
Programming
Software Development
16 Years Ago
by William Hemsworth
…, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); switch (message) { case WM_INITDIALOG: {
SetDlgItemText
(hDlg, IDC_WIDTH, INTTOCHARP(width));
SetDlgItemText
(hDlg, IDC_HEIGHT, INTTOCHARP(height)); return (INT_PTR)TRUE; } case…
Having problems with my word editor pprogram in API
Programming
Software Development
14 Years Ago
by goody11
… set up the dialog box, and initialise any default values
SetDlgItemText
(hwnd, IDC_TEXT, "This is a string"); SetDlgItemInt… one // Either way, we aren't going to process this.
SetDlgItemText
(hwnd, IDC_SHOWCOUNT, "-"); } } else { MessageBox(hwnd, "Error …
MSVC++ Express 8 error C2228
Programming
Software Development
15 Years Ago
by n321
…+set deathmatch 1"); // set default text inside edit box
SetDlgItemText
(hwnd, IDC_MAIN_EDIT, s); // pbowens: dday's logo g_bmpLogo = LoadBitmap(GetModuleHandle…
Need help for MFC editbox
Programming
Software Development
14 Years Ago
by nicholasamh
…); m_command.GetLine(nCurrentLine, p); m_strCommand.ReleaseBuffer(lineLen); CString abc = m_strCommand;
SetDlgItemText
(IDC_EDIT2, abc); UpdateData(TRUE);
Center Text inside Static Control
Programming
Software Development
14 Years Ago
by gretty
… doesn't work SendMessage(hwnd,CDM_GETFOLDERPATH,sizeof(folderPath),(LPARAM)folderPath);
SetDlgItemText
(hwnd,msg,folderPath); } } [/CODE]
Having problems with setting text to an EditText Control
Programming
Software Development
14 Years Ago
by goody11
…)+j) != 0; ++j) { if(i == 0 && j == 0)
SetDlgItemText
(hwnd2,IDC_YOTEXT,((LPCSTR)conjugations+(i*MAX_LETTERS)+j)); } } } break; [/CODE] Thanks…
variables associated with ListBox are not accessible
Programming
Software Development
13 Years Ago
by muze
…#"; LPSTR str1 = str.GetBuffer(str.GetLength()); strcat(str1,DevIndex);
SetDlgItemText
(IDC_LIST,str1); [/code]
Help with win API toolbar
Programming
Software Development
11 Years Ago
by Some Dude
…, &dwRead, NULL)) { pszFileText[dwFileSize] = 0; // Add null terminator if(
SetDlgItemText
(hEdit, IDC_MAIN_EDIT, pszFileText)) bSuccess = TRUE; // It worked! } GlobalFree(pszFileText…
Windows Dialog Text Programming
Programming
Software Development
11 Years Ago
by iamthesgt
…); else memcpy(sipAccount->sipAddress, wsSIPAddress.c_str(), wsSIPAddress.length() + 1);
SetDlgItemText
(dialogHandle, IDC_EDIT_SIPADDRESS, sipAccount->sipAddress);
Re: Please help me to modify this application..
Programming
Software Development
16 Years Ago
by dokumen
…+0eh] add esi,0fh rep movsb invoke
SetDlgItemText
,hwwnd,TEXT_MAIN,addr tempText .endif .endif mov…,eax mov ecx,eax rep movsb invoke
SetDlgItemText
,hwwnd,TEXT_MAIN,addr stringTagBuff .endif ret .endif…
Re: How do I detect the currsor (API)?
Programming
Software Development
14 Years Ago
by goody11
…, and initialise any default values
SetDlgItemText
(hwnd2, IDC_STEXT, " Spanish");
SetDlgItemText
(hwnd2, IDC_ETEXT, " English");
SetDlgItemText
(hwnd2, IDC_POSTEXT, "Part of…
Re: Switching editboxes using tab
Programming
Software Development
14 Years Ago
by goody11
…, and initialise any default values
SetDlgItemText
(hwnd2, IDC_STEXT, " Spanish");
SetDlgItemText
(hwnd2, IDC_ETEXT, " English");
SetDlgItemText
(hwnd2, IDC_POSTEXT, "Part of…
Re: SetDlgItemInt and decimals...
Programming
Software Development
18 Years Ago
by Dulaithol
I got it to work! Fix: [code] #define BUFFER 14 TCHAR tchBuffer[BUFFER];
SetDlgItemText
(hwnd, IDC_HEIGHTTEXT, _gcvt(j, 13, tchBuffer));
SetDlgItemText
(hwnd, IDC_LENGTHTEXT, _gcvt(l, 13, tchBuffer)); [/code]
Re: Telnet Client
Programming
Software Development
16 Years Ago
by Devoney
…ChangeDlgText PUSH 106 PUSH hWin Call
SetDlgItemText
DetMaxSock: PUSH hWin Call UpdateWindow …RestoreText1 PUSH 106 PUSH hWin Call
SetDlgItemText
MOV MaxSocksBuffer, 0 PUSH FALSE…
Re: Switching editboxes using tab
Programming
Software Development
14 Years Ago
by goody11
… the dialog box, and initialise any default values
SetDlgItemText
(hwnd2, IDC_ED, " Spanish");
SetDlgItemText
(hwnd2, IDC_ED2, " English"); break; case…
Re: Loading a Java String into a TextArea in an External Application - Please Help
Programming
Software Development
19 Years Ago
by BountyX
… that get the HWND of the texfield. After that use
SetDlgItemText
to set the text of the textfield. Finally emulate a…
Re: Reading and writing from files works selectively...
Programming
Software Development
16 Years Ago
by Arctic wolf
…='l'; DialogBox(MainWind,MAKEINTRESOURCE(IDD_DIALOGSAVE),hwnd,SaveloadDlgProc); if(succes=='t')
SetDlgItemText
(hwnd,IDC_PAGAIN," Loaded"); break; [/code] and here is…
Re: Write text to an 'Edit Control' - (C++/MFC)
Programming
Software Development
16 Years Ago
by eranga262154
Thanks. At the same time, I can use [B]
SetDlgItemText
()[/B] member function with passing two arguments, the control ID and string of text.
Re: Making a Password Protection
Programming
Software Development
14 Years Ago
by goody11
[code] case IDC_ENTER: {
SetDlgItemText
(hwnd3, IDC_PASS, "pass"); HWND hPass = GetDlgItem(hwnd3, IDC_PASS); …
Re: Add Text To multiline textbox
Programming
Software Development
14 Years Ago
by ChaosBG
I just need a way to add text to it but not the [code=c]
SetDlgItemText
[/code] ~Cha0sBG
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC