summaryrefslogtreecommitdiff
path: root/PE/reinsert.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2003-10-10 02:58:19 +0000
committerpixel <pixel>2003-10-10 02:58:19 +0000
commitfc597c1b922e1e8679dcb373a2f4d6501a94b8a4 (patch)
treec22cf83079472a08dee5680d44d838e826559309 /PE/reinsert.cpp
parent91449afe69d2a0c42d228ba09085022116c31b22 (diff)
On passe aux choses 'sérieuses'
Diffstat (limited to 'PE/reinsert.cpp')
-rw-r--r--PE/reinsert.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/PE/reinsert.cpp b/PE/reinsert.cpp
index da6225b..28b7c75 100644
--- a/PE/reinsert.cpp
+++ b/PE/reinsert.cpp
@@ -5,27 +5,22 @@
#include "cdutils.h"
#include "reinsert-res.h"
-#include <afxres.h>
+#include <windowsx.h>
#define index 0x838da
#define offset 0x83b78
-
-BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam)
-{
+
+BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
Base::printm(M_STATUS, "AboutDlgProc: uMsg = %i (0x%x)\n", uMsg, uMsg);
- switch(uMsg)
- {
- case WM_COMMAND:
- {
- switch(LOWORD(wParam))
- {
- case IDCANCEL: DestroyWindow(hW);return TRUE;
- case IDOK: DestroyWindow(hW);return TRUE;
- }
+ switch (uMsg) {
+ case WM_COMMAND:
+ switch (LOWORD(wParam)) {
+ case IDCANCEL: DestroyWindow(hW); return TRUE;
+ case IDOK: DestroyWindow(hW); return TRUE;
+ }
}
- }
- return FALSE;
+ return FALSE;
}
void LaisserSouffler(HWND Dlg) {
@@ -56,6 +51,9 @@ void UpdateProgress(HWND Dlg, float percent) {
r.right = percent * r.right / 100;
MoveWindow(ctrl, r.left, r.top, r.right, r.bottom, TRUE);
InvalidateRect(ctrl, NULL, TRUE);
+ ctrl = GetDlgItem(Dlg, IDC_BLAHBLAH);
+ Static_SetText(ctrl, "Toto");
+ InvalidateRect(ctrl, NULL, TRUE);
UpdateWindow(Dlg);
}
@@ -67,6 +65,8 @@ virtual int startup() throw (GeneralException) {
Handle * iw;
cdutils * cd;
+// new Archive(*argv, ARCHIVE_EXECUTABLE);
+
verbosity = M_INFO;
ShowWindow(Dlg = CreateDialog(0, MAKEINTRESOURCE(IDD_ABOUT), GetActiveWindow(), AboutDlgProc), SW_SHOWDEFAULT);