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:
twanvl
2006-11-20 18:51:11 +00:00
parent 3cbf2577c1
commit 23abbedcbd
46 changed files with 433 additions and 70 deletions
+13
View File
@@ -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