Rev 259 | Rev 419 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 259 | Rev 412 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | return true; |
58 | return true; |
59 | } |
59 | } |
60 | 60 | ||
61 | Boolean builddialog(FilterRecordPtr pb){ |
61 | Boolean builddialog(FilterRecordPtr pb){ |
- | 62 | INT_PTR res; |
|
62 | PlatformData *p = (PlatformData *)pb->platformData; |
63 | PlatformData *p = (PlatformData *)pb->platformData; |
- | 64 | ||
63 | return DialogBoxParam(hDllInstance,MAKEINTRESOURCE(ID_BUILDDLG), |
65 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(ID_BUILDDLG), |
64 | gdata->hWndMainDlg ? gdata->hWndMainDlg : (HWND)p->hwnd,builddlgproc,0) == IDOK; |
66 | gdata->hWndMainDlg ? gdata->hWndMainDlg : (HWND)p->hwnd,builddlgproc,0); |
- | 67 | if (res == 0) { |
|
- | 68 | simplealert("DialogBoxParam in valid parent window handle"); |
|
- | 69 | } |
|
- | 70 | if (res == -1) { |
|
- | 71 | char s[100]; |
|
- | 72 | strcpy(s, "DialogBoxParam failed: "); |
|
- | 73 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + strlen(s), 0x100, NULL); |
|
- | 74 | dbg(s); |
|
- | 75 | } |
|
- | 76 | ||
- | 77 | return res == IDOK; |
|
65 | } |
78 | } |