View Single Post
Old 05-25-2017, 12:52 PM   #24
snooks
Banned
 
Join Date: Sep 2015
Posts: 1,650
Default

Yes, that's better. I've whittled it down to this...

Code:
void Snooks::FocusMIDIEditor(COMMAND_T* ct)
{
    HWND editor = MIDIEditor_GetActive();
    if (editor != NULL) {   
	DockWindowActivate(editor); // in case it's docked and not visible
	FocusWindow(GetPianoView(editor));
    }
}
... which you could eat your dinner off, if I do say so myself.
snooks is offline   Reply With Quote