Results 1 to 2 of 2

Thread: Changing a window icon

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    2
    Hi Jim,

    I tried your suggestion, but still it doesn't work. In fact VB complained that there where too many parameters for SendMessage (needed 3, not 4). But that did no good either. I tried both with WM_PAINT and with WM_PAINTICON.

    The strange thing is that I get no error message. But nothing happens at all! :-(

    The reason why I need to do this is that I have a program I compiled with the Matlab compiler. Unfortunatelly it is not possible to change the icon of the windows open by the matlab compiled program. They are always the default matlab icon, which I'd like to change to our own icon (after we made the program!). The Mathworks (the people that made Matlab) are aware of this and have promised to change that in the next version of the compiler, but until them I am stuck. That is why I want to change the icon using a VB program.

    Do you know of another way of doing this?

    Cheers,

    Angel

  2. #2

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    2

    Error code 5 -

    Hi again,

    I just noticed that in fact I am getting an error code 5 after the SetClassLong call. That error code corresponds to ERROR_ACCESS_DENIED. Why should this be the case?

    Angel

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