Menu

#378 LoadDialogResource doesn't recognize extended dialogs

open
pythonwin (177)
5
2008-08-18
2008-08-18
Roger Upole
No

Extended dialog templates have a different format
than regular dialogs. (DLGTEMPLATEEX, which is apparently not actually defined as a struct anywhere)
According to MSDN, they can be identified by 0xffff in the second WORD of the data.
Currently win32ui tries to treat them as a regular
dialog resource and returns bad data.

>>> win32ui.LoadDialogResource(win32ui.IDD_ABOUTBOX)
[['About Pythonwin', (0, 192, -32568, 4), 4294901761, 0, None, '"\x16ät', 0]]

For right now, I'm just going to check for the 0xffff and return NotImplementedError.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.