Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Icon dialog - file dialog
#8
btw. i tried to make the dialog center with removing WS_EX_CLIENTEDGE
and adding DS_CENTER, but it doen't work.

is there a way to accomplish that when using a qm toolbar for old style dialogs ?

my current solution is to detect old dialogs and use something like:

__filedialog2
Code:
Copy      Help
,,case ["qm","notepad++"]
,,,SetWinStyle hwnd WS_THICKFRAME|WS_MAXIMIZEBOX|WS_MINIMIZEBOX 1|8
,,,int sys_menu=GetSystemMenu(hwnd 0)
,,,AppendMenu(sys_menu MF_BYPOSITION|MF_STRING SC_SIZE "&Size")
,,,0.2
,,,MoveWindow hwnd nx ny 800 600 1
,,,RECT rc; GetClientRect hwnd &rc
,,,mov rc.right-80 500 id(1 hwnd)
,,,mov 0 500 id(1090 hwnd) 1
,,,mov 0 500 id(1152 hwnd) 1
,,,mov rc.right-80 530 id(2 hwnd)
,,,mov 0 530 id(1089 hwnd) 1
,,,mov 0 530 id(1136 hwnd) 1
,,,siz rc.right-10 400 child("" "SHELLDLL_DefView" hwnd)
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)