Made some progress today with the ActiveX stuff. Seems that if you
subclass a BUTTON object when you create the control, Embedded Visual C++
decides that you don't actually need a parent window for it. (i.e. The
docs appear to say that you have a main parent window, a control parent
window and then the instance of the control. This appears now not to be
Managed to get the window messages pointed in the right direction - at
least they're now being received by the correct control. Not all the event
handlers work, however - it looks like we're supposed to implement our own
message map before anything wonderful is going to happen. Unfortunately,
because I can't use the debugger to trace through the objects, I'm at a
bit of a loss as to what's actually going on. Docs are fine, but not
everything is as per MS's notes (or even their "working" sample code).
Anyway, I finally managed to get the ActiveX controls displaying as
windows. Now to stick a bitmap into them. You have no idea how
difficult this was. It took almost 4 hours of poring over documentation
(remember again, I can't use the debugger for this and the function that
was failing is a boolean function - err, great, fellas - just what I need.
No error codes.) Anyway, that's mostly happening now, although I'm
still having some sizing images. The CBitmap class doesn't actually
tell you the size of the image - instead, it waits until you call
the SetImageSize (I think that's the name of it) method, and you
tell it how large the image is. Umm... yeah. OK.
Am thinking I'll just zoom the image to an arbitrary size when I load it,
then stretch it using another method, rather than actually figure out how
many pixels are in the damn thing. What kind of a programming environment
is this? I can't believe it, but I'm actually missing the normal VC++
environment, and that was my personal hell for a long time...
On a different note, on my way to RMIT this evening, I found an open
wireless LAN access point on Swanston St. Haven't mapped anything on it as
I'm only using an iPAQ with primitive software, but it's interesting to
know that it was there.