Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] C++ Dll injection

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Sharel972
Newbie cheater
Reputation: 0

Joined: 02 Nov 2009
Posts: 24
Location: israel

PostPosted: Sat Nov 07, 2009 2:01 am    Post subject: [Help] C++ Dll injection Reply with quote

I want my Trainer will be possible to open several windows together, which means that if say I opened a window then blocked access to the main window until I close the window opening. I want that not be a blocked access.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Nov 07, 2009 6:40 am    Post subject: Reply with quote

modal/modeless windows
Back to top
View user's profile Send private message
Sharel972
Newbie cheater
Reputation: 0

Joined: 02 Nov 2009
Posts: 24
Location: israel

PostPosted: Sat Nov 07, 2009 7:38 am    Post subject: Reply with quote

i didn't understand .. what do u mean ?

here is an example to dialog:
Code:
BOOL CALLBACK DlgProc6 (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
   UNREFERENCED_PARAMETER(lParam);
   switch(uMsg)
   {

   case WM_INITDIALOG:   
      break;
   
   case WM_HOTKEY:
      break;

   case WM_COMMAND:
      break;
      }

   case WM_CLOSE:
      EndDialog(hWnd, 0);
      return TRUE;
      break;

   case WM_DESTROY:
      EndDialog(hWnd, 0);
      return TRUE;
      break;

   default:
      break;
   }
   return 0;
}



and that what i write in main dialog:

Code:
        if(wParam == IDC_BUTTON6)
         {
            DialogBox(GlobalhMod, MAKEINTRESOURCE(IDD_DIALOG2), hWnd, (DLGPROC)DlgProc2);
         }
Back to top
View user's profile Send private message MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sat Nov 07, 2009 12:10 pm    Post subject: Reply with quote

if you use DialogBox( .. ); to create the dialog, the user can not use the parent dialog until the child dialog has been closed.
You can use CreateDialog( .. ); to create a dialog where the user can use both dialogs at the same time.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Nov 07, 2009 12:21 pm    Post subject: Reply with quote

http://msdn.microsoft.com/en-us/library/ms644994(VS.85).aspx#modal_boxes
http://msdn.microsoft.com/en-us/library/ms644994(VS.85).aspx#modeless_boxes
Back to top
View user's profile Send private message
Sharel972
Newbie cheater
Reputation: 0

Joined: 02 Nov 2009
Posts: 24
Location: israel

PostPosted: Sat Nov 07, 2009 1:46 pm    Post subject: Reply with quote

tombana wrote:
if you use DialogBox( .. ); to create the dialog, the user can not use the parent dialog until the child dialog has been closed.
You can use CreateDialog( .. ); to create a dialog where the user can use both dialogs at the same time.


Thank u that work !
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites