|
-
Jul 21st, 2001, 07:01 AM
#1
Thread Starter
Member
Creating a text box. How to ?
o.s win 98
compiler: dev-C++ version 4
level : keen newbie
Hello,
I’ve just started to look at win apps. My question is how do you create a control ( textbox)? I spent some time reading MSDN library, but I could not implement their suggestions. It seemed to be referring to MFC
Thanks
-
Jul 21st, 2001, 07:53 AM
#2
Frenzied Member
TO create a textbox using the API us ethe CreateWindow API with the string EDIT as the classname.
-
Jul 21st, 2001, 08:40 AM
#3
Frenzied Member
Example:
Code:
HWND TextBox;
TextBox = CreateWindowEx(WS_EX_CLIENTEDGE, "Edit", "This is the text that is in the text box", WS_CHILD | WS_VISIBLE, x, y, w, h, HWNDofYOURform, NULL, hInstance, NULL);
-
Jul 21st, 2001, 09:55 AM
#4
Thread Starter
Member
thanks...
Thanks Vlatko and Steve !
Hmm ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|