Re: Create a WS_CHILD window in another thread with its own WinPro



Hi Doc,

Thanks for the feedback.

Sorry, currently, I do not think I understand your problem context
completely. Based on the WS_CLIPCHILDREN description in MSDN, it will
exclude the area occupied by child windows when drawing occurs within the
parent window. So it sounds suitable for your scenario. If it does not work
for you, please feel free to tell me, thanks.

Do you create 2 top-level windows in 2 separate threads or 2 child windows
in separate threads? I do not recommend you to create the child windows in
separate threads. For legacy reason, win32 standard controls are
encapsulated using STA threading model, so normally all the windows should
be placed in a single GUI thread, or some strange threading issue may
occur. Yes, it may be feasibility to place 2 top-level windows in different
threads, however, this is a rare situation(Explorer process place different
top-level windows in separate threads). You always need a message loop in a
GUI thread.

Can you tell me why do you need 2 threads for the windows? Thanks

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: GDI+ error with Remote Desktop
    ... The application runs well if not running through Remote Desktop. ... you have a WinForm application on a Windows ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: System time change notification
    ... have a windows UI, it is not an actual issue for me. ... But since server application will run in Session 0 in Vista, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.tools)
  • Re: interrupting a lengthy sequence
    ... Winform GUI normally runs in a single thread, so when the GUI thread is ... Windows messages currently in the message queue. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Problem with Process.GetCurrentProcess() when starting a servi
    ... System is Windows XP. ... to send the sample project to me by removing "online." ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • RE: The debugger component on the server failed to connect to the
    ... my computer is running under Windows XP ... In Component Services, expand Component Services, expand Computers, and ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)

Loading