Selaa lähdekoodia

update 9/22 11

XKSYU2021 1 kuukausi sitten
vanhempi
sitoutus
8818dc9ae8
3 muutettua tiedostoa jossa 14 lisäystä ja 17 poistoa
  1. 0 11
      Ui for BDS/childProc.cpp
  2. 1 1
      Ui for BDS/childProcSet.cpp
  3. 13 5
      Ui for BDS/mainProc.cpp

+ 0 - 11
Ui for BDS/childProc.cpp

@@ -9,17 +9,6 @@ LRESULT CALLBACK StartProc(HWND hWnd1, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     switch (msg)
     {
-    case WM_CREATE:
-    {
-        HWND hLabel = CreateWindow(
-            L"STATIC", L"UI For BDS",
-            WS_VISIBLE | WS_CHILD,
-            20, 20, 130, 50,
-            hWnd1, NULL,
-            (HINSTANCE)GetWindowLongPtr(hWnd1, GWLP_HINSTANCE), NULL
-        );
-        break;
-    }
     case WM_DESTROY:
         hStart = NULL;
         break;

+ 1 - 1
Ui for BDS/childProcSet.cpp

@@ -97,7 +97,7 @@ HWND CreateStartWindow(int x, int y, WNDPROC procFunc, LPCWCHAR className, HINST
     hChild = CreateWindowEx(
         NULL,
         className, NULL,
-        WS_POPUP | WS_VISIBLE,
+        WS_POPUP | WS_VISIBLE | WS_BORDER,
         Sx, Sy,
         x, y, NULL, NULL,
         hInstanceF, NULL

+ 13 - 5
Ui for BDS/mainProc.cpp

@@ -23,19 +23,27 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
     {
     case WM_CREATE:
     {
-        ClearLog();
-
         //MessageBox(hWnd,
         //    L"测试版程序\n数据无价,谨慎操作!", TITLE,
         //    MB_OK | MB_ICONWARNING);
 
-        //StartBDS();
-
         HINSTANCE HI_Start = NULL;
         hStart = CreateStartWindow(
             700, 450,
             StartProc, _T("start"), HI_Start);
-        Sleep(1000);
+        HWND hLabel = CreateWindow(
+            L"STATIC", L"UI For BDS\n程序正在进行初始化",
+            WS_VISIBLE | WS_CHILD,
+            260, 200, 180, 50,
+            hStart, NULL,
+            (HINSTANCE)GetWindowLongPtr(hStart, GWLP_HINSTANCE), NULL
+        );
+
+        //INIT here
+        ClearLog();
+        //StartBDS();
+        //INIT end
+
         DestroyWindow(hStart);
 
         HINSTANCE HI_Log = NULL;