Changing window procedure for console window

Posted by Anonymous on Stack Overflow See other posts from Stack Overflow or by Anonymous
Published on 2011-01-16T16:35:15Z Indexed on 2011/01/16 16:53 UTC
Read the original article Hit count: 181

Filed under:
|

I want to make console window with a functional tray icon. I figured out that most probably it is necessary to replace initial console's window procedure so I will be able to control all messages including notify area events. But SetWindowLong function returns 0, and GetLastError() tells that access is denied. hwndFound = GetConsoleWindow(); SetWindowLong(hwndFound, GWL_WNDPROC, (long)WndProc); What could it be, or maybe there is some other way to control tray icon manipulations?

© Stack Overflow or respective owner

Related posts about c

    Related posts about console