View Single Post
  #4   Spotlight this post!  
Unread 02-01-2003, 21:44
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
In that case, just create a message handler for the button using Class Wizard. Assuming you decide to call it something like OnSearchButton and your class for your search dialog is called CSearchDlg, the function would look something like this:

Code:
void CYourMainWndClass::OnSearchButton(){
  CSearchDlg searchDlg;
  int ret;

  
  ret=searchDlg.DoModal();

  if(ret==-1 || IDABORT)
    //error occurred
  else
    //ret contains value passed to EndDialog.  Process accordingly


}
That's the basics. If you're looking for something more advanced, email me.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php