Click here to Skip to main content
15,791,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFilling a square? Pin
Lord Kixdemp13-Jul-06 13:49
Lord Kixdemp13-Jul-06 13:49 
AnswerRe: Filling a square? Pin
earl13-Jul-06 14:22
earl13-Jul-06 14:22 
GeneralRe: Filling a square? Pin
Lord Kixdemp13-Jul-06 17:10
Lord Kixdemp13-Jul-06 17:10 
GeneralRe: Filling a square? Pin
Rilhas17-Jul-06 13:47
Rilhas17-Jul-06 13:47 
GeneralRe: Filling a square? Pin
Lord Kixdemp18-Jul-06 13:33
Lord Kixdemp18-Jul-06 13:33 
QuestionSubclass main Winamp window from plugin Pin
u0m313-Jul-06 13:13
u0m313-Jul-06 13:13 
AnswerRe: Subclass main Winamp window from plugin Pin
Justin Tay13-Jul-06 18:47
Justin Tay13-Jul-06 18:47 
GeneralRe: Subclass main Winamp window from plugin Pin
u0m315-Jul-06 6:25
u0m315-Jul-06 6:25 
I started using this code for subclassing the main window: http://forums.winamp.com/showthread.php?s=&threadid=227006

Here's the relevant part:
int init()<br />
{<br />
  // This subclasses the main Winamp window, so we can receive all events it receives.<br />
  lpWndProcOld = (WNDPROC)SetWindowLong(plugin.hwndWinampParent,GWL_WNDPROC,(LONG)WndProc);<br />
<br />
  // This subclasses the Playlist Editor window, so we can receive all events it receives.<br />
  HWND pe = (HWND)SendMessage(plugin.hwndWinampParent,WM_WA_IPC,IPC_GETWND_PE,IPC_GETWND);<br />
  lpPEProcOld = (WNDPROC)SetWindowLong(pe, GWL_WNDPROC, (LONG)PlaylistEditorProc);<br />
<br />
  return 0;<br />
} 


I used only the first part...

lpWndProcOld = (WNDPROC)SetWindowLong(plugin.hwndWinampParent,GWL_WNDPROC,(LONG)WndProc);

I got errors for plugin and (LONG)WndProc -> don't know how to get them... sorry... I'm a n00b.
GeneralRe: Subclass main Winamp window from plugin Pin
u0m318-Jul-06 3:15
u0m318-Jul-06 3:15 
GeneralRe: Subclass main Winamp window from plugin Pin
Justin Tay18-Jul-06 4:48
Justin Tay18-Jul-06 4:48 
QuestionCan I still use DLLs ? Pin
vcpp_cgr13-Jul-06 12:49
vcpp_cgr13-Jul-06 12:49 
AnswerRe: Can I still use DLLs ? Pin
Jun Du13-Jul-06 14:34
Jun Du13-Jul-06 14:34 
QuestionHBITMAP from clipboard Pin
Luksky13-Jul-06 12:43
Luksky13-Jul-06 12:43 
AnswerRe: HBITMAP from clipboard Pin
Chris Losinger13-Jul-06 12:52
professionalChris Losinger13-Jul-06 12:52 
GeneralRe: HBITMAP from clipboard Pin
Luksky14-Jul-06 1:18
Luksky14-Jul-06 1:18 
GeneralRe: HBITMAP from clipboard Pin
Luksky15-Jul-06 6:21
Luksky15-Jul-06 6:21 
QuestionError: LNK2019: Unresolved external symbol... Pin
jon-8013-Jul-06 11:42
professionaljon-8013-Jul-06 11:42 
AnswerRe: Error: LNK2019: Unresolved external symbol... Pin
Chris Losinger13-Jul-06 12:52
professionalChris Losinger13-Jul-06 12:52 
GeneralRe: Error: LNK2019: Unresolved external symbol... Pin
jon-8014-Jul-06 7:15
professionaljon-8014-Jul-06 7:15 
GeneralRe: Error: LNK2019: Unresolved external symbol... Pin
Rilhas17-Jul-06 13:54
Rilhas17-Jul-06 13:54 
QuestionC++ Exception Programming Pin
pgav13-Jul-06 10:50
pgav13-Jul-06 10:50 
AnswerRe: C++ Exception Programming Pin
led mike13-Jul-06 10:55
led mike13-Jul-06 10:55 
QuestionRe: C++ Exception Programming [modified] Pin
pgav13-Jul-06 11:41
pgav13-Jul-06 11:41 
AnswerRe: C++ Exception Programming Pin
led mike13-Jul-06 12:45
led mike13-Jul-06 12:45 
AnswerRe: C++ Exception Programming Pin
Joe Woodbury13-Jul-06 12:12
professionalJoe Woodbury13-Jul-06 12:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.