Mar 22, 2011 at 12:05am Mar 22, 2011 at 12:05am UTC
I need to know hot to make a butten in a win32 program.
Dot you have eny ideas?
thanks for replys!
Last edited on Mar 22, 2011 at 12:40am Mar 22, 2011 at 12:40am UTC
Mar 22, 2011 at 12:12am Mar 22, 2011 at 12:12am UTC
I've got this idea where we would selectively breed dogs with the smallest legs, then the ones with the smallest legs of their litter, and so on and son on over a very long period of time, and in the end we would have a sort of worm-like dog creature.
Mar 22, 2011 at 12:31am Mar 22, 2011 at 12:31am UTC
im toking obout a buton not dogs!
Last edited on Mar 22, 2011 at 12:31am Mar 22, 2011 at 12:31am UTC
Mar 22, 2011 at 12:34am Mar 22, 2011 at 12:34am UTC
I love that "Reported" button.
Mar 22, 2011 at 12:38am Mar 22, 2011 at 12:38am UTC
you know that I,m tolking About a button in a win32 program!!!
Mar 22, 2011 at 12:38am Mar 22, 2011 at 12:38am UTC
I only just noticed it's quite a snazzy feature isn't it.
Hi ty98 I can't help but you might have more luck getting an answer for this is you post it in the Windows Programming section.
Mar 22, 2011 at 12:41am Mar 22, 2011 at 12:41am UTC
fixed it!
what wer you tolking obout with the dogs and stuf?
Mar 22, 2011 at 12:47am Mar 22, 2011 at 12:47am UTC
1 2 3 4 5 6 7
HWND hButton = CreateWindow ("button" , "This is a button" , WS_CHILD | WS_VISIBLE, 5, 5, 130, 20, hParent, (HMENU) hmControlID, GetModuleHandle (NULL), NULL);
if (!hButton)
{
MessageBox (hParent, "Button creation has failed!" , "Error!" , MB_OK | MB_ICONWARNING);
PostQuitMessage (0);
}
ShowWindow (hButton, SW_SHOW);
See
http://www.winprog.org/tutorial/controls.html
Last edited on Mar 22, 2011 at 12:49am Mar 22, 2011 at 12:49am UTC
Mar 22, 2011 at 1:10am Mar 22, 2011 at 1:10am UTC
is there eny thing els that i need to do in order to get this right?
Last edited on Mar 22, 2011 at 1:18am Mar 22, 2011 at 1:18am UTC
Mar 22, 2011 at 1:20am Mar 22, 2011 at 1:20am UTC
ok I tryed that it dose not werk.
can you give me a project using that?
Mar 22, 2011 at 3:43am Mar 22, 2011 at 3:43am UTC
Copying and pasting example code is good because it is faster, but I don't suggest it because the bad outweighs the good; If you copy and paste it then you don't remember it as well as if you typed it out. Every time I've copy and pasted code I found myself going back and having to type it out relearning the code.
So in my opinion, I highly suggest not copying and pasting code.
Mar 22, 2011 at 7:45pm Mar 22, 2011 at 7:45pm UTC
that is what i did. I typed it but it did not werk!
Mar 22, 2011 at 8:32pm Mar 22, 2011 at 8:32pm UTC
+1 quirkyusername while unrelated to this topic, that is one of the funniest things I have ever read :P