How would I make a text box for the user to type in??
This is a discussion on How do I make a text box?? within the Windows Programming forums, part of the Platform Specific Boards category; How would I make a text box for the user to type in??...
How would I make a text box for the user to type in??
Use an edit box control.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
This is how you do it on a normal window:
Code:hwndEdit = CreateWindow ("edit", NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL | ES_AUTOVSCROLL, 0, 0, 0, 0, hwnd, (HMENU) ID_VIEW, hInst, NULL);
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
It says hwndEdit undeclared and ID_VIEW undeclared!!
try adding
hwnd hwndEdit;
and
#define ID_VIEW 1
into your code.
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
Ok, see where in the code it says
0,0,0,0 all in a row like that? Change it to
0,0,200,200 if you actually want to SEE the editbox![]()
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
Cute mistake though...
My first window I accidentally created it out of range of the screen, so for an hour I just kept clicking the Taskbar Icon that was *swearing* the window was active and visible... till of course I noticed it peaking from the edge of the screen...
And thanks for the code Ken, I was actually about to post the same question(Sunlight confuses me!! --Argh...)
Code:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}
yeah, I hate his windows tut's for some odd reason.
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
I tried Sunlight's tutorials once...very confusing to say the least!
Sunlight was a bit full of himself, not a very good teacher, never gave any answers, just "See my tuts" "Look @ the FAQ". We could ourselves to do that, when we post something we want REAL and HUMAN help.
![]()
SPH![]()
Sunlight answered many questions and helped a lot of people here, and elsewhere. If you don't like his tutorials, there are many others - search google, you'll find hundreds. If you don't like his style, don't read his replies, (your loss of course).
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Never said I didn't like him, I thought he was great, and a very intelligent person, all I said was that his tutorials confused me...that's what drove me to pick up petzold's.
Gays can't love like real people
entropysink.com -- because arses weren't designed for running websites.
My post was aimed more at Sean's mail.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.