NO

Author Topic: absolute Newbie in C  (Read 7338 times)

voxid

  • Guest
absolute Newbie in C
« 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

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
absolute Newbie in C
« Reply #1 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.
---
Stefan

Proud member of the UltraDefrag Development Team

voxid

  • Guest
absolute Newbie in C
« Reply #2 on: March 02, 2007, 10:20:12 AM »
is the editbox a window?

voxid

  • Guest
absolute Newbie in C
« Reply #3 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

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
absolute Newbie in C
« Reply #4 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  :)
---
Stefan

Proud member of the UltraDefrag Development Team

voxid

  • Guest
absolute Newbie in C
« Reply #5 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

voxid

  • Guest
absolute Newbie in C
« Reply #6 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

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
absolute Newbie in C
« Reply #7 on: March 07, 2007, 10:46:22 AM »
Just google with this key "windows programming tutorial".
You'll find more then you need.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

ivanhv

  • Guest
absolute Newbie in C
« Reply #8 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.

voxid

  • Guest
absolute Newbie in C
« Reply #9 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