Pelles C forum

C language => Pocket PC and Smartphone questions => Topic started by: voxid on March 02, 2007, 09:47:37 am

Title: absolute Newbie in C
Post by: voxid on March 02, 2007, 09:47:37 am
Hi guys,
first of al i ve to say hello.. (first time in this forum).
then:
i tried to create a program to calculate some simple things..
i ve three editboxes and four pushbuttons. ok.. the when i push a button the program has to calculate. i tryed and it works. but now i stuck. i want to change a editbutton to be disabled by pressing another button. i cannot find the entrance to this way of programming. i searched for functions etc. everywhere. i only did find winapi and so on with c++ and nothing worked.
another problem:
how can i open a new window (it might be simple, but i dont check it.. poor beginners.. ;-))
can somebody help me please or tell me where i can read about it..
i did a lot off in vba.. and thought it should be simple to find the entrance.. it wasnt simple..
thanks a lot
greets of bavaria, germany
Title: absolute Newbie in C
Post by: Stefan Pendl on March 02, 2007, 10:07:37 am
The function you are searching for is EnableWindow, use the handle of the control and use TRUE or FALSE to enable or disable the control.
Title: absolute Newbie in C
Post by: voxid on March 02, 2007, 10:20:12 am
is the editbox a window?
Title: absolute Newbie in C
Post by: voxid on March 02, 2007, 10:33:06 am
I found a function SetReadOnly(hwndCtl,fReadOnly); for the editbox.. I don t know if it s the right one. and how to use it.
greets
voxid
Title: absolute Newbie in C
Post by: Stefan Pendl on March 02, 2007, 06:17:05 pm
Quote from: "voxid"
is the editbox a window?

Any control (button, edit, etc.) is a window, since all are created with CreateWindow  :)
Title: absolute Newbie in C
Post by: voxid on March 02, 2007, 10:09:07 pm
Hi back again.. ok.. seem me to get mauch mor information.. is there any way to get some information 'bout programming in windoes .. or for ppc's.. seems to be similar... but i cann ot find an reicipe, tutorial or something else for tis way of C...
please help me..
eventually I could work with code examples or program examples to check more about C for ppc' with pelles c.
greets voxid
Title: absolute Newbie in C
Post by: voxid on March 07, 2007, 07:36:04 am
Does nobody knows a good help for my problem?.. how did you start in programming for wm5?
greets
voxid
Title: absolute Newbie in C
Post by: frankie on March 07, 2007, 10:46:22 am
Just google with this key "windows programming tutorial".
You'll find more then you need.
Title: absolute Newbie in C
Post by: ivanhv on March 07, 2007, 11:00:20 am
There is a great tutorial for beginning Windows programming:

www.winprog.org/tutorial

You can also check

win32assembly.online.fr/tutorials.html

It's for assembly, but code is very intuitive and the windows concepts are nicely explained.
Title: absolute Newbie in C
Post by: voxid on March 07, 2007, 11:13:40 am
thanks a lot i think this is the thin i couldn t find!!
i will spend my time with it and hope me to check it ;)
greets
voxid