News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Child window problem

Started by fushiyun, February 01, 2008, 03:45:38 PM

Previous topic - Next topic

fushiyun

i am sorry. it is still wrong.

the main problem is still that the EDIT control can't be typed by keyboard.

the creating steps are as following:
1. Create a main window using a registered name, "TESTSDI" , by specifing WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN
    (the parent is NULL)

2. Create a child window using a registered name, "SDICHILD", by specifing WS_CHILD | WS_OVERLAPPEDWINDOW
    (the parent is a hwnd obtained from main window)

3. Create a EDIT on child window using "EDIT" class name, by specifing WS_CHILD only.
    (the parent is the hwnd of child window)

can you tell me what step i omit, thank you.
i am sorry to take your time. :red

ToutEnMasm

Hello,
If the edit is visible,trying 'invoke SetFocus,Heditcontrol'      must be enough

fushiyun

for single child window, it maybe be a good method to resolve.
however, while i create two child window, i still suffer from that problem.

thank ToutEnMasm reply.  :toothy
i think that the SetParent() should be a good method for me.
so i decide to use SetParent() in our project.

thank you. :U