Date: | April 18, 2007 / year-entry #135 |
Tags: | code |
Orig Link: | https://blogs.msdn.microsoft.com/oldnewthing/20070418-00/?p=27203 |
Comments: | 6 |
Summary: | Here's a problem that floated past a few years ago. We switched our wizard from using dialog resource IDs to using PSP_DLGINDIRECT because [reasons deleted since they aren't important]. But once we did that, the Next button doesn't work! Anybody have any ideas what's going on? I made things a little easier by deleting the... |
Here's a problem that floated past a few years ago.
I made things a little easier by deleting the information that isn't relevant to the problem. See if you can solve it before reading further. Here's my reply:
The But how do you specify pages when you aren't using dialog resource IDs? Let's take a step back and look at the way dialogs are specified. There are three ways to do this:
If you look at the property sheet page structure, you'll also notice that the If you specified your page via dialog resource ID, you can return that dialog resource ID; but what if you used a dialog resource name or an indirect dialog? Well, since the dialog resource ID, resource name, and indirect dialog are all stored in the same place, you just pass whatever you passed in the This technique works with |
Comments (6)
Comments are closed. |
Now this ofcourse begs the question (sorry if it’s answered already): “How do I work around that problem in 64-bit Windows XP?” (not using PSP_DLGINDIRECT and moving back to resource IDs isn’t a valid answer).
From an app compatibility point of view, could Microsoft fix this bug in a service pack, since presumably whatever workaround people use to get round it at the moment will continue to work and the rest of us can just write to how it should work, or is it likely to stay as it is, as time has moved on, and we’re on to Vista?
I’m just curious as to what the general philosophy is on correcting and/or documenting this sort of mistake at Microsoft, and how that feeds back to MSDN documentation.
Currently, searching for PSM_SETCURSELID with BUG, PRB or truncated turns up nothing on MSDN or google on my cursory view.
I’m not actually running into the problem. I’ll get back to you when I do (probably never). Can’t tell for everyone though.
And yes, you are right about BTQ. I don’t understand most of the grammatical mumbo jumbo here: http://begthequestion.info/ but now I know it should’ve been "This raises the question".
Am I the only one wondering what a "curse lid" was at first when I saw PSM_SETCURSELID? :)
Yeah, you probably have evil thoughts when you go to Pen Island’s website, too.
That’s nothing, I’ve had to use a clueless web proxy that blocked requests for like RegisterClassEx and InitCommonControlsEx. The MSDN pages themselves would work but I couldn’t find them -_-‘