Questions tagged [editcontrol]

Edit controls let a user view and edit text.

97 questions
0
votes
0 answers

How to detect rich edit content in C++

How could I detect whether an edit control support rich content in windows with C++ code, for example, I could copy/paste an image into it. Additionally, If I get the HWND of the foreground window, how could I get the edit control, but not the frame…
Chen
  • 1
  • 1
0
votes
1 answer

Alphabets-only MFC editbox

I have a Dialog-based applicaton which consist of 3 editboxes which are of CString type. The editboxes are for Firstname, Middlename and Lastname. My editboxes are Alphanumeric since all are of type CString. Now my question is how can I validate my…
BaluS
  • 55
  • 6
0
votes
0 answers

How to set text color to Edit Contol in ATL Control?

I have a ATL ActiveX Control with Edit Control. I want to set text color to the control of as per specific conditions. I cannot use setTextColor as there is no MFC support to the the control. I am also not able to use 'WM_CTLCOLOREDIT' message as I…
0
votes
0 answers

How do I find the bounds of a Win32 API text/edit control?

I am working on a program that will allow the user to record steps of simple tasks and then generate a file to send to people that show these steps. So if you left click on a window it will say "User Left Clicked on Google Chrome" with an…
Kraizee
  • 31
  • 2
  • 7
0
votes
1 answer

Edit control does not behave as officially documented

I have created edit control with the style ES_AUTOHSCROLL in my main window. Documentation states that When the user presses the ENTER key, the control scrolls all text back to position zero. I have entered very long text, positioned caret at the…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
0
votes
1 answer

Three questions about editbox?

I have three questions about editbox control in WINAPI (i can't find information on msdn about this) 1. How to disable moving typeing cursor with mouse, arrows, backspace in editbox ? I want to make typing like in command line in dos, but with out…
piotrek
  • 1,333
  • 4
  • 17
  • 35
0
votes
1 answer

Write formatted text(printf style) to a MFC CEdit control, which would display the formatted text in a EditControl?

I need to display text along with values of variables in a CEdit controlled Edit Control Box. How do I do it ? Currently I'm using SetWindowText(), but that only takes a string...how do I get a formatted string to display in the edit control?…
TCSGrad
  • 11,898
  • 14
  • 49
  • 70
0
votes
1 answer

Win32: edit control selection in dialog-based app

I have a dialog-based app with an edit-control in it. When I minimize / restore the app, everything's ok. But when I hide all the windows with holding down that Windows-logo-key and pressing "D" and then I restore the app, the edit-control selects…
Lars Kanto
  • 685
  • 2
  • 10
  • 15
0
votes
0 answers

Finding handle for Edit Control

I am trying to find a handle for an Edit control in a window in another application. Basically what I have done so far is the following: I already have the handle to the window in which the combo box of the edit control and edit control are in. I am…
computerWizard
  • 94
  • 3
  • 12
0
votes
2 answers

Recommend solution for visually indicating invalid input in singleline edit control

I have edit controls in my dialog box. Some of them are numeric, some of them accept floats and some of them are textual. I am validating edit controls with integer and float input. I have implemented validation mechanism in response to EN_CHANGE…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
0
votes
1 answer

How to scroll down a edit control to show contents?

I have a edit control to show the results.But the results are too many so they can't be displayed unless you scroll down it.But how can I achieve it ?
BecomeBetter
  • 433
  • 1
  • 6
  • 18
0
votes
1 answer

How to limit number of characters typed in a textbox in MFC?

I have 2 questions...my 1st question is how do I limit the number of character typed in a textbox in MFC..say if I want the user to type only 4 characters..the text box should take only 4 character.And my 2nd question is when it exceeds the…
kiddo
  • 1,596
  • 7
  • 31
  • 60
0
votes
1 answer

Properly protect edit control from SQL injection and nonsense characters

INTRODUCTION AND RELEVANT INFORMATION: I have an edit control in which user should enter a company name. Edit control is locale aware. PROBLEM: I wish to properly protect it from SQL injection attacks and from user entering nonsense characters. MY…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
0
votes
1 answer

Properly handle VK_DELETE when subclassing edit control

I am subclassing edit control to accept only decimal numbers. Everything works fine, and the only thing left for me is processing the case when user selects portion of the text and presses Delete key ( VK_DELETE ). My question is following: Does…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
0
votes
1 answer

how would I change a window handles via edit control box in an mfc application?

I have made a small program (using mfc) that edits a text box in another one of my applications, but every time I want to use my program I have to edit the following: HWND editbox = (HWND)0x0000000; to whatever the new handle is using winspy++, I…