PowerBASIC Forums
  PowerBASIC for Windows
  CONTROL SEND versus SendDlgItemMessage (Page 2)

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone!
This topic is 2 pages long:   1  2 
next newest topic | next oldest topic
Author Topic:   CONTROL SEND versus SendDlgItemMessage
Lance Edmonds
Member
posted December 15, 2002 03:45 AM     Click Here to See the Profile for Lance Edmonds     Edit/Delete Message   Reply w/Quote
quote:
Originally posted by Gösta H. Lovgren-2:
[B] I have to tell you this last section is of NO help at all. I don't want to sound
at all ungrateful for your generous help (on many occasions) but I HAVE read
(much of)Petzold, as well as a couple (expensive) others, and do use WinHlp.
And many things are still not clear to me.

Gosh I'm sorry Gosta, but if you've read that much of Petzold, you must have covered window handles and control ID's...? If not, can I respectfully suggest that you read the book again.

Please note that this is not intended as a snide remark... I read Petzold 5 or 6 times before it really started to gel for me.

For example, if you wanted to know more about GetDlgItem(), then the index in Petzold (Edition 5) shows 3 references to the API call in the book... the first reference gets you to page 366/367 where Control ID's are discussed.

quote:
It demonstrates to me you (and many others here) don't really comprehend the depth of ignorance some of us Newbies have.

Gosh, thanks for the compliment!

What may not be obvious is that myself (and many of the folks here too) had to learn windows programming from scratch too. We learned from books and by experimenting. When I started learning, there were few "masters" around to help, so I was mostly on my own... hence my always-growing collection on Windows programming books.

My background was primarily DOS programming, where the concept of message-based programming initially seemed impossible to learn. What I found was that you have to allow a reasonable amount of time to learn Windows programming concepts... don't give up too soon as one day it will just "click" and you'll find it all makes sense. I know it did for me, and I've heard many other say the same thing.

quote:
In my case, for example, I don't have ANY formal training (college courses, etc. or even high school) nor do I have C experience.

Many programmers are in the same boat as you here, but irrespective of that, my recommendation is to stick with books such as Petzold... if you read (and reread) them, eventually you'll find it almost second nature (although that will probably seem impossible from where you are standing at the moment).

quote:
What WOULD be REALLY helpful is to have a separate forum where Newbies could go
and have examples and explanations posted with well commented complete code.

You are here already... these forums are intended for every level of question... there is no need to be afraid of asking any question.

The problem I see when reviewing this topic is that the code is not trivial, so your jumping into the deep end here. That is, the code above covers everything from basic control/handle processing to interprocess communication, when you might be better off asking questions about some of the example files that ship with PB/Win... for example, HELLODDT.BAS to start with, and maybe move along to ANIMATE.BAS, etc.

quote:
Pierre's example above is a good one. However it would have been much more
helpful had an actual working sample been included us Newbies could load into
our editors and run and seen the effects of FindWindow & GetDlgItem.
Then we could go and experiment and incorporate on our own, and just maybe, for
the less slow among us, gain more understanding of Windows programming.

Precisely, and if you dig, you'll probably find EXCELLENT examples of almost any API you'd like to find out about if you search the 100,000+ messages in these forums... there is not much that has not been covered or "exampled" at some point.

quote:
Lance, I honestly believe you cannot understand how intimidating posting on this
forum (where probably the best and most competent programmers IN THE WORLD hang
out and post) can be for a Newby to ask a "foolish" question (and please, no
posts "There is no such thing as a foolish question.... Only ...") and how
frustrating and offputting a reply like "Read Petzold .." or "Search the Forum"
can be.

I'm sorry, but this is 180-degrees from the facts as I known them to be.

Firstly, you are overlooking the fact that I (and many others too) once stood where you are standing now. Personally, I from "there" to "here" by reading the books and experimenting on my own. You can do the same too, BUT you also have the opportunity to use these forums to ask questions, serious or otherwise.

If you are "embarrassed" to ask what you deem to be silly questions then that cuts your avenues for assistance. However, few people here are intent on providing coaching on Windows programming theory from ground zero... thats probably why you hear the "read Petzold" response. Most of us here love helping folks, but we also have an expectation you will help teach yourself too.

I should also point out that EVERYONE that visits here and answers questions (including PowerBASIC Staff!) do this for free and often do it in our own time too. These are the "Peer Support Forums", not the "Tech Support Forums".

quote:
I don't think I am the only one who is in love with PB but is having trouble.
I'm sure I'm not the only one. We REALLY need our own forum.

Segregation has been discussed, and we've watched it operate in other on-line forums. From my perspective it is less than successful due to good old human nature, so we are not altogether keen to adopt segregation into these forums.

In summary Gosta, we'll always be here to help you where and when we can, but if you really want to learn [Windows] programming, then be prepared to study/read/experiment and ask questions when you get stuck.

------------------
Lance
PowerBASIC Support
support@powerbasic.com

IP: Logged

Michael Mattias
Member
posted December 15, 2002 05:49 AM     Click Here to See the Profile for Michael Mattias     Edit/Delete Message   Reply w/Quote
quote:

.. if you search the 100,000+ messages in these forums... there is not much that has not been covered or "exampled" at some point..

Unfortunately, the indexing is a little weak.. all the mispellings and misleading "message titles" (e.g., "need help") make it kind of hard to find stuff. Often useful code is buried deep within a message thread with a title which gives no clue as to what goodies lie within.

Maybe the 100,000 number needs to be reduced to make "full text" searches a bit more meaningful.

I know PB has said it is looking at new BBS software, and this may be a re-run of "bbs new feature request" but I thought I'd add a checkmark beside "better/easier search needed."

MCM

IP: Logged

Lance Edmonds
Member
posted December 15, 2002 07:27 AM     Click Here to See the Profile for Lance Edmonds     Edit/Delete Message   Reply w/Quote
The POFFS offline forums can help here... http://www.reonis.d2g.com/POFFS/index.htm

------------------
Lance
PowerBASIC Support
support@powerbasic.com

IP: Logged

Pierre Bellisle
Member
posted December 15, 2002 07:39 AM     Click Here to See the Profile for Pierre Bellisle     Edit/Delete Message   Reply w/Quote
Added more comments in my last post on how
EnumWindowProc and EnumChildWindows works...
At least I think it work that way...
Also enhanced the code a little bit.

Hope this help.


Code moved to source code at http://www.powerbasic.com/support/forums/Forum7/HTML/001681.html
Topic: EnumWindows and EnumChildWindows

------------------
Pierre Bellisle

[This message has been edited by Pierre Bellisle (edited February 27, 2004).]

IP: Logged

Gösta H. Lovgren-2
Member
posted December 15, 2002 04:49 PM     Click Here to See the Profile for Gösta H. Lovgren-2     Edit/Delete Message   Reply w/Quote
quote:
...<snip>
Hope this help.


Code moved to source code at http://www.powerbasic.com/support/forums/Forum7/HTML/001681.html
Topic: EnumWindows and EnumChildWindows

[/B]


Bravo Pierre,

Great job!!! Great Job!!!

Just the kind of stuff a newby needs. Actually I had spent
several hours this morning commenting your previous code myself,
so has to gain more PB insights. Many of my comments are of a
different nature and may be of interest to other Newbies. If any
are interested, I will post it also.

Again, fine job Pierre.

------------------
Thx............Gösta
Gosta@SwedesDock.com
http://www.SwedesDock.com
http://www.PondersBible.com

[This message has been edited by Gösta H. Lovgren-2 (edited December 15, 2002).]

IP: Logged

Pierre Bellisle
Member
posted December 16, 2002 12:50 PM     Click Here to See the Profile for Pierre Bellisle     Edit/Delete Message   Reply w/Quote
Gösta,
I'm really pleased it helped.

It might be a good idea, if you feel like it,
to post your code & comment under mine,
so PB users can find both version easily...
And for a better understanding,
have both points of view in the same place.

Ciao.


------------------
Pierre

[This message has been edited by Pierre Bellisle (edited February 27, 2004).]

IP: Logged

Gösta H. Lovgren-2
Member
posted December 17, 2002 09:07 AM     Click Here to See the Profile for Gösta H. Lovgren-2     Edit/Delete Message   Reply w/Quote
quote:
Originally posted by Pierre Bellisle:
Gösta,
I'm really pleased it helped.

It might be a good idea, if you feel like it,
to post your code & comment under mine,
so PB users can find both version easily...
And for a better understanding,
have both points of view in the same place.

Ciao.



I just posted the code. Hopefully you (Pierre) will correct any
misconceptions or misinterpretations I may have made.

In any case Pierre, nice job on the code and even better on the
liberal and fog piercing comments in the code. They certainly
helped me, even if I never find a use for the code.

Oh for a Newby Forum ({sigh} where liberal commenting would be
the norm instead of the exception.

------------------
Thx............Gösta
Gosta@SwedesDock.com
http://www.SwedesDock.com
http://www.PondersBible.com

IP: Logged


This topic is 2 pages long:   1  2 

All times are EasternTime (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | PowerBASIC BASIC Compilers

Copyright © 1999-2007 PowerBASIC, Inc. All Rights Reserved.


Ultimate Bulletin Board 5.45c