Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong value for WC_DIALOG #2

Open
steward-fu opened this issue Jul 5, 2024 · 0 comments
Open

Wrong value for WC_DIALOG #2

steward-fu opened this issue Jul 5, 2024 · 0 comments

Comments

@steward-fu
Copy link

Here is the code about to create window

Method MyApp.Init, uses esi
    SetObject esi
    invoke CreateWindowEx, WS_EX_LEFT, WC_DIALOG, $OfsCStr("main"), 
        WS_OVERLAPPEDWINDOW or WS_VISIBLE, 0, 0, 300, 300, NULL, NULL, NULL, pSelf
    m2m [esi].hWnd, eax
MethodEnd

ObjAsm/Code/Inc/Windows/winuser.inc

WC_DIALOG equ (MAKEINTATOM(8002h))

ObjAsm/Code/Inc/Windows/winbase.inc

MAKEINTATOM macro i
  exitm <(LPTSTR) (((i)))>
endm 

But the value becomes as 8006h (the original one is 8002h) after compiling.
For workaround, I set as the following:

WC_DIALOG equ 8002h

Could please help fix this issue ?

Here is the reference web:
https://steward-fu.github.io/website/program/objasm_fix_wc.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant