mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
implemented clipboard handling for cards
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@83 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -17,6 +17,19 @@
|
||||
#include <shlobj.h>
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------- : Window related
|
||||
|
||||
// Id of the control that has the focus, or -1 if no control has the focus
|
||||
int focused_control(const Window* window) {
|
||||
Window* focused_window = wxWindow::FindFocus();
|
||||
// is this window actually inside this panel?
|
||||
if (focused_window && wxWindow::FindWindowById(focused_window->GetId(), window) == focused_window) {
|
||||
return focused_window->GetId();
|
||||
} else {
|
||||
return -1; // no window has the focus, or it has a different parent/ancestor
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : DC related
|
||||
|
||||
/// Fill a DC with a single color
|
||||
|
||||
Reference in New Issue
Block a user