Changeset 163
- Timestamp:
- 03/22/08 22:41:05 (10 months ago)
- Files:
-
- trunk/lib/dwin-debug.lib (modified) (previous)
- trunk/lib/dwin.lib (modified) (previous)
- trunk/sys/win32/ShellLink.d (modified) (1 diff)
- trunk/sys/win32/UserGdi.d (modified) (1 diff)
- trunk/sys/win32/Window.d (modified) (1 diff)
- trunk/sys/win32/Wrapper.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/sys/win32/ShellLink.d
r154 r163 18 18 module dwin.sys.win32.ShellLink; 19 19 20 private import dwin.sys.win32.com.Core; 21 private import dwin.sys.win32.CodePage : toString16z; 22 private import dwin.core.Exception; 23 24 private import dwin.sys.win32.tlb.Shell32; //for ShellLinkDual 20 import dwin.sys.win32.com.Core, 21 dwin.core.Exception; 22 import dwin.sys.win32.CodePage : toString16z; 23 24 25 import dwin.sys.win32.tlb.Shell32; //for ShellLinkDual 25 26 26 27 trunk/sys/win32/UserGdi.d
r150 r163 7 7 8 8 9 public 10 { 11 import tango.sys.win32.UserGdi; 12 import dwin.sys.win32.Types; 13 import dwin.sys.win32.Macros;14 import dwin.sys.win32.Wrapper;9 public import tango.sys.win32.UserGdi, 10 dwin.sys.win32.Types, 11 dwin.sys.win32.Macros, 12 dwin.sys.win32.Window, 13 dwin.sys.win32.Wrapper; 14 15 15 //import dwin.sys.win32.Interfaces; 16 } 16 17 17 18 18 private import dwin.sys.win32.com.Core; trunk/sys/win32/Window.d
r154 r163 23 23 24 24 25 /* 26 HWND isWindowExist(char[] classname, char[] windowname, bool topmost = true)25 26 HWND windowExists(char[] classname, char[] windowname, bool show = false) 27 27 { 28 HWND instance = findWindow(classname, windowname); 29 if (!instance) { return null; } 30 if(topmost) 28 HWND hwnd = findWindow(classname, windowname); 29 if( show && (hwnd !is null) ) 31 30 { 32 ShowWindow(instance, SW_SHOWNORMAL); 33 SetWindowPos(instance, HWND_TOPMOST, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE); 31 ShowWindow(hwnd, SW_SHOWNORMAL); 32 SetForegroundWindow(hwnd); 33 //SetWindowPos(instance, HWND_TOPMOST, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE); 34 34 } 35 return instance;35 return hwnd; 36 36 } 37 //isWindowExist 38 */ 37 // 39 38 39 40 // RECT left top right bottom 40 41 //SPI_GETWORKAREA 41 42 RECT getWorkArea() trunk/sys/win32/Wrapper.d
r154 r163 322 322 */ 323 323 // 324 HINSTANCE shellEx cute(HWND hwnd, char[] operation, char[] exepath, char[] parameters = null, char[] directory = null, int showcmd = SW_SHOWMAXIMIZED )324 HINSTANCE shellExecute(HWND hwnd, char[] operation, char[] exepath, char[] parameters = null, char[] directory = null, int showcmd = SW_SHOWMAXIMIZED ) 325 325 { 326 326 return ShellExecuteW(hwnd, toString16z(operation), toString16z(exepath), toString16z(parameters), toString16z(directory), showcmd);
