CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Animate

  1. #1
    Join Date
    May 1999
    Posts
    54

    Animate

    Hi,

    I make composite control (ATL-COM 3.0) and put in OnInitDialog next code:

    CreateWindowEx(WS_EX_LEFT|WS_EX_LTRREADING|WS_EX_RIGHTSCROLLBAR|WS_EX_NOPARENTNOTIFY,
    "SysAnimate32", "", WS_CHILD|WS_VISIBLE|ACS_CENTER|ACS_TRANSPARENT,
    0, 11, 161, 35, m_hWnd, (HMENU)IDC_ANIMATE, _Module.GetModuleInstance(), NULL).

    I want to create animate control as part of my composite control.

    The CreateWindowEx failed, HWND is NULL.

    How to correct this problem?

    Thank you, Zoran.


  2. #2
    Join Date
    May 1999
    Posts
    54

    Re: Animate

    Hi,

    Solution is: InitCommonControls() before creating window and
    include Comctl32.lib in settings.

    Zoran from Krusevac.


  3. #3
    Join Date
    May 1999
    Posts
    54

    Re: Animate

    Thank you, Zoran from Krusevac, Serbia.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured