Re: Windows edit control programming question
Posted: Sat Sep 13, 2008 3:38 am
Indeed they are, otherwise there would be no case where one message could be received by a window without another message also being sent at the same time. True, Visual Basic does combine things like WM_LBUTTONDOWN, WM_RBUTTONDOWN, etc, but it's not enough to bring the count down below the original stated 200, nor would I consider these messages "redundant" or "overlapping" (unless I'm severely confused about set terminology!)bewing wrote:Then let me say it this way, since you seem to be insisting on being pedantic:
There are not, in actuality, 200 different kinds of events inside a windoze computer. The 200 separate messages overlap in their functionality. They are not exclusive of each other.
This becomes philisophical, but the fact remains that subclassing is so used that it is often confused for processing windows messages at all (see the first few posts here). This suggests the opposite of a complete set of functions.bewing wrote:Therefore, it is quite possible that an intelligent combination of some 24 element subset of those messages may actually, in fact, comprise a complete set.
I'm not sure what you mean here, they are all methods of a form object.bewing wrote:Plus, the 24 functions that you refer to are not all methods of the same class of object, are they? So they don't necessarily have to all be the same 24 functions, do they?
VB does not subclass anything on its own to attain extra functionality. Chances are you are unnecessarily subclassing something in C.bewing wrote:I am programming Windoze in C, ATM. In just about every Windoze GUI program I've written in C, I need to subclass the stupid edit windows. I almost never have to subclass a damned thing in VB -- because the VB interface to the API does it all for me.
More evidence that you are not doing things correctly in C.bewing wrote:In fact, somehow VB manages to create effects that I've never been able to figure out how to recreate in C.
It's not necessarily that it's buggy, it's just that it tries to be foregiving (unless you're thinking of a specific instance). Always using Option Explicit can help here.bewing wrote:The problem that I have with VB is that it can take a flawless piece of sourcecode, and make it run wrong every time, or make it run wrong in a random fashion. There are places where you never ever want bugs, and your compiler is at the top of that list.