CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    41

    Resize and redraw buttons.

    I am resizing an owner-draw button with a bitmap on it, but the result is the same button with no bitmap.I thing the problem is that the bitmap i create with stretchblt hasn't the appropriate coordinates?Am I right?
    Any suggestions of what is happening?
    Thanx.


  2. #2
    Join Date
    Aug 1999
    Posts
    7

    Re: Resize and redraw buttons.

    Perhaps,there's something wrong in call StretchBlt().There're two parameters separately representing the width and height of source bitmap.If one of these two parameters is larger than the practical width or height of the source bitmap you use,stretchblt()will do nothing.But it can do if less.


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