News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Invisible text in edit window

Started by Roy Leroux, December 15, 2018, 08:42:36 PM

Previous topic - Next topic

Roy Leroux

I hope this is the right forum.
Using 17.12 Code::Blocks. I'm new to CB, winapi and c++.

CreateWindowW( L"edit",L"Enter here.",
WS_CHILD | SS_LEFT | WS_BORDER | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | WS_VISIBLE,
202,175,100,100,
hWnd,NULL,NULL,NULL);

The above creates an edit window fine, with the 'Enter here' showing.
I cannot highlight and delete the 'Enter here'.
I can enter text but it is invisible until I select it.
Then the 'Enter here' disappears and I can see the selected text.
Any further entry only shows the 'Enter here'.
How can I make it act like a normal edit window?

It works correctly in the video tutorials.

oBFusCATed

Quote from: Roy Leroux on December 15, 2018, 08:42:36 PM
I hope this is the right forum.
Nope, it is not we don't provide programming help or API help. You should find better places.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]