Stubbed implementations and Windows objects
I am currently in the process of implementing a stubbed version of ctl3d.dll. For functions that return BOOL, I'm printing a fixme and then returning TRUE. What is the convention for stubbed implementations that return a Windows object (HBRUSH, HWND, etc)? Thanx, Ian
"Ian D. Stewart" <idstewart(a)compuvative.com> wrote:
I am currently in the process of implementing a stubbed version of ctl3d.dll. For functions that return BOOL, I'm printing a fixme and then returning TRUE. What is the convention for stubbed implementations that return a Windows object (HBRUSH, HWND, etc)?
I think that you better should try to return real GDI object handles returned by GetStockObject or GetSysColorBrush. Regarding HWNDs: what ctl3d function is supposed to return window handles? -- Dmitry.
On 2002.05.11 21:54 Dmitry Timoshkov wrote:
"Ian D. Stewart" <idstewart(a)compuvative.com> wrote:
I am currently in the process of implementing a stubbed version of ctl3d.dll. For functions that return BOOL, I'm printing a fixme and
then returning TRUE. What is the convention for stubbed implementations that return a Windows object (HBRUSH, HWND, etc)?
I think that you better should try to return real GDI object handles returned by GetStockObject or GetSysColorBrush.
Ah, that's what I was looking for, thank you! (I'm still kinda new to this windows programming stuff)
Regarding HWNDs: what ctl3d function is supposed to return window handles?
None, it was really more of a general question. Thanx again, Ian
participants (2)
-
Dmitry Timoshkov -
Ian D. Stewart