Why is my app not compatible with WindowBlinds 11?

Hi,

I am using:

Windows 10 Pro 22H2 (19041.vb_release.191206-1406)
WindowBlinds 11.02 (017 - Windows 10 Edition) - 64 bit OS

I wrote more than 20 years ago a Windows text editor using at the time the very low level C WIN32 API.

There is a lot of code, and nowadays this would have been written with the more elaborate classes that VisualStudio offers, but it's out of the question to re-write it.

My app is just not compatible with WindowsBlind, the vertical toolbar is mangled and does not work at all.

It disappears when the window is resized or when you try to use it.

Here is how it looks excluded and not excluded:

https://i.postimg.cc/FFTZcf0k/Native.jpg
https://i.postimg.cc/Dymcc2cj/skinned1.jpg
https://i.postimg.cc/0230WLW8/skinned2.jpg

Below is a sample of the code. There are a lot of lines, it's hard to know what is relevant though.

Is that enough to know what to change to make my app compatible with WB11?

You can download for testing the app here:

https://www.sedit.com/index_htm_files/SEDIT%2032+64%20bit%20Setup.exe

Edit: new link

https://www.sedit.com/index_htm_files/SEDIT%20%205.09d2%20Setup.exe

   toplevel = CreateWindowEx( /* WS_EX_ACCEPTFILES */ /* WS_EX_CONTROLPARENT */
                              0,
                              lpszAppName,
                              "",                   // Window Name
                              WS_OVERLAPPEDWINDOW | WS_VSCROLL,
                              px, py,
                              ll, hh,
                              NULL,
                              NULL,
                              hInstance_gd,
                              NULL
                           );
 
ShowWindow(toplevel, SW_SHOWNORMAL);
UpdateWindow(toplevel);
                                                                                                                 
  if (lg_set)
   { GetWindowRect(toplevel, &re);
     ht_can = ht_car * (h+1) - ht_toolbar_gd;
     la_can = la_car * l;
     re.bottom = re.top  + ht_can + ht_toolbar_gd;
     re.right  = re.left + la_can;
     top  = (int) re.top;
     left = (int) re.left;
 
     rc = GetSystemMetrics(SM_CXHSCROLL) - 1; /* Largeur scroll-bar */
 
     AdjustWindowRect(&re, WS_OVERLAPPEDWINDOW | WS_VSCROLL,
                      menubar_gd ? TRUE:FALSE);
 
     /*
      * AdjustWindowRect a changé top et left
      */
     SetWindowPos(toplevel, HWND_TOP, left, top,
                  re.right-re.left+rc, re.bottom-re.top+MARGE_INS,
                  SWP_NOCOPYBITS|SWP_NOZORDER);
   }
                                                                                                                 
                                                                                                                 
void set_toolb()
{
  TBADDBITMAP tbab;
  TBBUTTON tbb[LEN_TOOLBAR];
  int i;
 
  if (toolbar_gd) return;
 
  // Ensure that the common control DLL is loaded.
  InitCommonControls();
 
  for(i=0; i<LEN_TOOLBAR; i++)
   { tbb[i].iBitmap = i;
     tbb[i].idCommand = SEED_TOOLBAR+i;
     tbb[i].fsState = TBSTATE_ENABLED;
     tbb[i].fsStyle = TBSTYLE_BUTTON;
     tbb[i].dwData = 0;
     tbb[i].iString = 0;
   }
 
  toolbar_gd = CreateToolbarEx(toplevel,
           WS_CHILD | WS_BORDER | TBSTYLE_TOOLTIPS,   // ws
           111111,           // wID
           LEN_TOOLBAR,      // nBitmaps
           hInstance_gd,     // HINSTANCE  hBMInst,
           BMP_TOOLBAR,      // UINT  wBMID,
           tbb,              // LPCTBBUTTON  lpButtons,
           LEN_TOOLBAR,      // int  iNumButtons,
           16,               // int dxButton,
           15,               // int dyButton,
           16,               // int  dxBitmap,
           15,               // int  dyBitmap,
           sizeof(TBBUTTON)  // UINT  uStructSize
                       );
 
  //SendMessage(toolbar_gd, TB_ADDSTRING, 0, (LPARAM) (LPSTR) "Cut");
 
  set_toolbar_ht();
  tooltip_not_gd = tt;
 
  ShowWindow(toolbar_gd, SW_SHOW);
}

 

Moved to Windowblinds forum

 

4,249 views 2 replies
Reply #1 Top

Hello,
I have forwarded your problem/question to Stardock Support Team for their assistance. Please keep an eye on this thread for any updates. We appreciate your feedback and patience.

Basj,
Stardock Community Assistant

+1 Loading…
Reply #2 Top

I got an answer from ChatGPT, don't overtax yourself looking for a solution...