#include "camtypes.h"#include "bmapprev.h"#include "bmpexprw.h"#include "exjpeg.h"#include "helpuser.h"#include "layer.h"#include "lineattr.h"#include "page.h"#include "pngfiltr.h"#include "fileutil.h"#include "filtrmgr.h"#include "filtimag.h"#include "sgliboil.h"#include "strlist.h"#include "statline.h"#include "aprps.h"#include "ngprop.h"#include "gpalopt.h"#include "osrndrgn.h"Go to the source code of this file.
Classes | |
| struct | ChildWindowParameters |
Defines | |
| #define | new CAM_DEBUG_NEW |
| #define | BUBBLE_TIME 800 |
| #define | BUBBLE_HELP_TIMMER_ID 1000 |
| #define | BMPEXP_MAXWIDTH 16383 |
| #define | BMPEXP_MAXHEIGHT 16383 |
| #define | BMPEXP_MAXDPI 5000 |
| #define | BMPEXP_MINDPI 5 |
Functions | |
| DECLARE_SOURCE ("$Revision: 1745 $") | |
| BOOL CALLBACK | EnumChildProc (wxWindow *hChild, LPARAM lParam) |
|
|
Definition at line 159 of file bmapprev.cpp. |
|
|
Definition at line 158 of file bmapprev.cpp. |
|
|
Definition at line 157 of file bmapprev.cpp. |
|
|
Definition at line 160 of file bmapprev.cpp. |
|
|
Definition at line 155 of file bmapprev.cpp. |
|
|
Definition at line 154 of file bmapprev.cpp. |
|
|
Definition at line 146 of file bmapprev.cpp. |
|
|
|
|
||||||||||||
|
Definition at line 634 of file bmapprev.cpp. 00635 { 00636 // First get our parameters back 00637 ChildWindowParameters* pParam = (ChildWindowParameters*)lParam; 00638 if (pParam == NULL) 00639 return FALSE; 00640 00641 //Get the ID of our parent window 00642 wxWindow* hParent = (wxWindow*)pParam->FirstID; 00643 if (hParent == NULL) 00644 return FALSE; 00645 00646 // first find the true parent of the child window 00647 // and then compare the parent with our dialog 00648 if (GetParent(hChild) != hParent) 00649 return TRUE; 00650 00651 //If this is the Preview dialog child window, return TRUE 00652 if (GetParent(hChild) == (wxWindow*) pParam->SecondID) 00653 return TRUE; 00654 00655 //move the window 00656 00657 // get the size of the child window 00658 wxRect Rect; 00659 GetWindowRect(hChild, &Rect); 00660 00661 wxRect Parent; 00662 GetWindowRect(hParent, &Parent); 00663 00664 INT32 Offset = pParam->Distance - pParam->TopOffset; 00665 MoveWindow(hChild, Rect.GetLeft() - Parent.GetLeft(), Rect.GetTop() - Parent.GetTop() + Offset, 00666 Rect.GetRight() - Rect.GetLeft(), Rect.GetBottom() - Rect.GetTop(), TRUE); 00667 00668 return TRUE; 00669 }
|
1.4.4