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

Thread: ScrollWindowEx

Hybrid View

  1. #1
    Join Date
    Mar 2004
    Posts
    22

    ScrollWindowEx

    Hi,
    I am getting the following errors even though the parameters passed are correct. Can somebody give me tips on how to debug a program. My code is attachted.

    Thanks and regards,
    Salil.

    error C2660: 'ScrollWindowEx' : function does not take 8 parameters
    error C2660: 'UpdateWindow' : function does not take 1 parameters
    error C2043: illegal break
    error C2660: 'ScrollWindowEx' : function does not take 8 parameters
    error C2660: 'UpdateWindow' : function does not take 1 parameters
    error C2660: 'SetScrollInfo' : function does not take 4 parameters
    error C2660: 'SetScrollInfo' : function does not take 4 parameters
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641
    Hi!

    Actually CWnd::ScrollWindowEx only takes 7 parameters, so your code is incorrect

    http://msdn.microsoft.com/library/de...llwindowex.asp

    Try ::ScrollWindowEx instead, i.e. add "::" before the functions or remove the HWND parameters.

    / Z

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