Rev 194 | Rev 205 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 194 | Rev 198 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | HWND preview_hwnd; |
34 | HWND preview_hwnd; |
35 | HCURSOR hCurHandOpen; |
35 | HCURSOR hCurHandOpen; |
36 | HCURSOR hCurHandGrab; |
36 | HCURSOR hCurHandGrab; |
37 | HCURSOR hCurHandQuestion; |
37 | HCURSOR hCurHandQuestion; |
38 | 38 | ||
39 | extern HANDLE hDllInstance; |
39 | extern HINSTANCE hDllInstance; |
40 | 40 | ||
41 | void DoAbout(AboutRecordPtr pb){ |
41 | void DoAbout(AboutRecordPtr pb){ |
42 | char text[1000]; |
42 | char text[1000]; |
43 | char title[200]; |
43 | char title[200]; |
44 | PlatformData *p = (PlatformData*)pb->platformData; |
44 | PlatformData *p = (PlatformData*)pb->platformData; |
Line 74... | Line 74... | ||
74 | Boolean simplealert(char *s){ |
74 | Boolean simplealert(char *s){ |
75 | char* title; |
75 | char* title; |
76 | if (gdata && gdata->standalone) { |
76 | if (gdata && gdata->standalone) { |
77 | title = INPLACEP2CSTR(gdata->parm.title); |
77 | title = INPLACEP2CSTR(gdata->parm.title); |
78 | } else { |
78 | } else { |
79 | title = "Filter Foundry"; |
79 | title = _strdup("Filter Foundry"); |
80 | } |
80 | } |
81 | return MessageBox(NULL,s,title,MB_TASKMODAL|MB_ICONERROR|MB_OK) == IDOK; |
81 | return MessageBox(NULL,s,title,MB_TASKMODAL|MB_ICONERROR|MB_OK) == IDOK; |
82 | } |
82 | } |
83 | 83 | ||
84 | Boolean showmessage(char *s){ |
84 | Boolean showmessage(char *s){ |
85 | char* title; |
85 | char* title; |
86 | if (gdata && gdata->standalone) { |
86 | if (gdata && gdata->standalone) { |
87 | title = INPLACEP2CSTR(gdata->parm.title); |
87 | title = INPLACEP2CSTR(gdata->parm.title); |
88 | } else { |
88 | } else { |
89 | title = "Filter Foundry"; |
89 | title = _strdup("Filter Foundry"); |
90 | } |
90 | } |
91 | return MessageBox(NULL,s,title,MB_TASKMODAL|MB_ICONINFORMATION|MB_OK) == IDOK; |
91 | return MessageBox(NULL,s,title,MB_TASKMODAL|MB_ICONINFORMATION|MB_OK) == IDOK; |
92 | } |
92 | } |
93 | 93 | ||
94 | INT_PTR CALLBACK maindlgproc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam); |
94 | INT_PTR CALLBACK maindlgproc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam); |
Line 100... | Line 100... | ||
100 | 100 | ||
101 | int item,i; |
101 | int item,i; |
102 | POINT newpos; |
102 | POINT newpos; |
103 | DRAWITEMSTRUCT *pdi; |
103 | DRAWITEMSTRUCT *pdi; |
104 | Point newscroll; |
104 | Point newscroll; |
105 | HFONT hfnt; |
105 | HGDIOBJ hfnt; |
106 | char s[0x100]; |
106 | char s[0x100]; |
107 | 107 | ||
108 | extern Boolean doupdates; |
108 | extern Boolean doupdates; |
109 | extern Handle preview_handle; |
109 | extern Handle preview_handle; |
110 | 110 | ||
Line 230... | Line 230... | ||
230 | GetClassInfoEx(hDllInstance, "STATIC", &clx); |
230 | GetClassInfoEx(hDllInstance, "STATIC", &clx); |
231 | clx.lpszClassName = "CautionSign"; |
231 | clx.lpszClassName = "CautionSign"; |
232 | RegisterClassEx(&clx); |
232 | RegisterClassEx(&clx); |
233 | 233 | ||
234 | // Now show the dialog |
234 | // Now show the dialog |
235 | p = pb->platformData; |
235 | p = (PlatformData*)pb->platformData; |
236 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(gdata->standalone ? ID_PARAMDLG : ID_MAINDLG), |
236 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(gdata->standalone ? ID_PARAMDLG : ID_MAINDLG), |
237 | (HWND)p->hwnd,maindlgproc,0) == IDOK; |
237 | (HWND)p->hwnd,maindlgproc,0) == IDOK; |
238 | 238 | ||
239 | UnregisterClass("Preview", hDllInstance); |
239 | UnregisterClass("Preview", hDllInstance); |
240 | UnregisterClass("CautionSign", hDllInstance); |
240 | UnregisterClass("CautionSign", hDllInstance); |