modify DirectX Diagnostic Tool
-
i gonna make my question as clear as I can. I want to change text of tabs and other text inside window of DirectX example in tab System i have text Computer Name: Machine and I want to change text to PC: Machine if i am not so clear in my question then plz ask me. regards
I Love SQL
-
i gonna make my question as clear as I can. I want to change text of tabs and other text inside window of DirectX example in tab System i have text Computer Name: Machine and I want to change text to PC: Machine if i am not so clear in my question then plz ask me. regards
I Love SQL
-
thanks Randor,but that's not what I need. I will try to explain again. I click Star->Run and I write
dxdiag
command then i have DirectX Diagnostic Tool window, in this window i want to change text of original one, example : On System tab it's informations Current Date/Time: Computer Name: Operating System: Language: . . . and I want to change like this Da/Time: PC: OS: Language: . . . how can I do those changes? regards
I Love SQL
modified on Sunday, April 13, 2008 3:58 AM
-
thanks Randor,but that's not what I need. I will try to explain again. I click Star->Run and I write
dxdiag
command then i have DirectX Diagnostic Tool window, in this window i want to change text of original one, example : On System tab it's informations Current Date/Time: Computer Name: Operating System: Language: . . . and I want to change like this Da/Time: PC: OS: Language: . . . how can I do those changes? regards
I Love SQL
modified on Sunday, April 13, 2008 3:58 AM
I'm not sure that your question has anything to do with the forum subject. Maybe you should have asked this somewhere else. This seems to work. Hope your a C++ developer.
typedef struct _WINDOW_INFORMATION { TCHAR title[MAX_PATH]; TCHAR Wndclass[MAX_PATH]; } WINDOW_INFORMATION, *LPWINDOW_INFORMATION; VOID ModifyDirectXDiag() { HWND hwnd = ::FindWindow(NULL,_T("DirectX Diagnostic Tool")); if(NULL != hwnd) { WINDOW_INFORMATION wndInfo; _tcscpy(wndInfo.title,_T("Current Date/Time:")); _tcscpy(wndInfo.Wndclass,_T("Static")); EnumChildWindows(hwnd,EnumWindowHandler,(LPARAM)&wndInfo); } else { MessageBox(NULL,_T("Cannot find DirectX window."),NULL,0); } } static BOOL CALLBACK EnumWindowHandler(HWND hwnd, LPARAM lParam) { LPWINDOW_INFORMATION pParentInfo = reinterpret_cast<LPWINDOW_INFORMATION>(lParam); WINDOW_INFORMATION childInfo; if(0 != GetClassName(hwnd,childInfo.Wndclass,MAX_PATH)) { if(0 == _tcscmp(childInfo.Wndclass,pParentInfo->Wndclass)) { GetWindowText(hwnd,childInfo.title,MAX_PATH); if(0 == _tcscmp(childInfo.title,pParentInfo->title)) { SetWindowText(hwnd,_T("Hello World")); } } } return TRUE; }
I can't believe I actually took the time to do this. Best Wishes, -David Delaune
-
I'm not sure that your question has anything to do with the forum subject. Maybe you should have asked this somewhere else. This seems to work. Hope your a C++ developer.
typedef struct _WINDOW_INFORMATION { TCHAR title[MAX_PATH]; TCHAR Wndclass[MAX_PATH]; } WINDOW_INFORMATION, *LPWINDOW_INFORMATION; VOID ModifyDirectXDiag() { HWND hwnd = ::FindWindow(NULL,_T("DirectX Diagnostic Tool")); if(NULL != hwnd) { WINDOW_INFORMATION wndInfo; _tcscpy(wndInfo.title,_T("Current Date/Time:")); _tcscpy(wndInfo.Wndclass,_T("Static")); EnumChildWindows(hwnd,EnumWindowHandler,(LPARAM)&wndInfo); } else { MessageBox(NULL,_T("Cannot find DirectX window."),NULL,0); } } static BOOL CALLBACK EnumWindowHandler(HWND hwnd, LPARAM lParam) { LPWINDOW_INFORMATION pParentInfo = reinterpret_cast<LPWINDOW_INFORMATION>(lParam); WINDOW_INFORMATION childInfo; if(0 != GetClassName(hwnd,childInfo.Wndclass,MAX_PATH)) { if(0 == _tcscmp(childInfo.Wndclass,pParentInfo->Wndclass)) { GetWindowText(hwnd,childInfo.title,MAX_PATH); if(0 == _tcscmp(childInfo.title,pParentInfo->title)) { SetWindowText(hwnd,_T("Hello World")); } } } return TRUE; }
I can't believe I actually took the time to do this. Best Wishes, -David Delaune