From: Rodrigo M. <rod...@te...> - 2004-03-22 16:50:18
|
Hi all To implement this new feature, i need set the help file name, i want store this information on HWindow Class, this is to avoid to create a public var containing the file name. So, how to get the main window handler, wich will have this information ? I saw the gettopwindow, but in some cases the topwindow can't be main window. Parent window can help in this case ? This is part of my code: Hdialog.prg: ... { WM_ACTIVATE,{|o,w,l|DlgActivate(o,w,l)} }, ; { WM_HELP,{|o,w,l|DlgHelp(o,w,l)} } ... Function DlgHelp( oDlg,wParam,lParam ) Local oCtrl := oDlg:FindControl( wParam ) Local cFileName cFileName := 'Here is need to discover what is the file name set up in main window' if oCtrl:HelpId == GetHelpData ( lParam ) WinHelp ( GetModalHandle(), cFileName, 1 , 2 , oCtrl:helpid ) EndIf Return 0 Regards Rodrigo Moreno |