Author Topic: Invisible text in edit window  (Read 365 times)

Offline Roy Leroux

  • Single posting newcomer
  • *
  • Posts: 1
Invisible text in edit window
« on: December 15, 2018, 08:42:36 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11394
    • Travis build status
Re: Invisible text in edit window
« Reply #1 on: December 16, 2018, 08:22:12 am »
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!]