Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. modify DirectX Diagnostic Tool

modify DirectX Diagnostic Tool

Scheduled Pinned Locked Moved System Admin
databasegraphicsgame-devtutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Blue_Boy
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • B Blue_Boy

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Blue_Boy wrote:

      if i am not so clear in my question then plz ask me.

      I see a couple of statements but do not see a question. Is it encoded into the blank lines with the new algorithm by Pallab_GT[^]? Best Wishes, -David Delaune

      B 1 Reply Last reply
      0
      • L Lost User

        Blue_Boy wrote:

        if i am not so clear in my question then plz ask me.

        I see a couple of statements but do not see a question. Is it encoded into the blank lines with the new algorithm by Pallab_GT[^]? Best Wishes, -David Delaune

        B Offline
        B Offline
        Blue_Boy
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • B Blue_Boy

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          B 1 Reply Last reply
          0
          • L Lost User

            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

            B Offline
            B Offline
            Blue_Boy
            wrote on last edited by
            #5

            thanks for your help, I'll try it ;)


            I Love T-SQL

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups