Code::Blocks

User forums => Help => Topic started by: Roy Leroux on December 15, 2018, 08:42:36 pm

Title: Invisible text in edit window
Post by: Roy Leroux 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.
Title: Re: Invisible text in edit window
Post by: oBFusCATed 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.