|
PowerBASIC Forums
![]() PowerBASIC for Windows
![]() CONTROL SEND versus SendDlgItemMessage (Page 2)
|
This topic is 2 pages long: 1 2 |
next newest topic | next oldest topic |
| Author | Topic: CONTROL SEND versus SendDlgItemMessage |
|
Lance Edmonds Member |
quote: 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: 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: 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: 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: 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: 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: 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. ------------------ IP: Logged |
|
Michael Mattias Member |
quote: 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 |
The POFFS offline forums can help here... http://www.reonis.d2g.com/POFFS/index.htm ------------------ IP: Logged |
|
Pierre Bellisle Member |
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.
------------------ [This message has been edited by Pierre Bellisle (edited February 27, 2004).] IP: Logged |
|
Gösta H. Lovgren-2 Member |
quote: Bravo Pierre, Great job!!! Great Job!!! Just the kind of stuff a newby needs. Actually I had spent Again, fine job Pierre. ------------------ [This message has been edited by Gösta H. Lovgren-2 (edited December 15, 2002).] IP: Logged |
|
Pierre Bellisle Member |
Gösta, I'm really pleased it helped. It might be a good idea, if you feel like it, Ciao.
[This message has been edited by Pierre Bellisle (edited February 27, 2004).] IP: Logged |
|
Gösta H. Lovgren-2 Member |
quote: I just posted the code. Hopefully you (Pierre) will correct any In any case Pierre, nice job on the code and even better on the Oh for a Newby Forum ({sigh} where liberal commenting would be ------------------ IP: Logged |
This topic is 2 pages long: 1 2 All times are EasternTime (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1999-2007 PowerBASIC, Inc. All Rights Reserved.