I thought I had this working, maybe I can't do it?
Problem is- it's never received by the %IDM_SAVE, %IDM_SAVEAS....
Problem is- it's never received by the %IDM_SAVE, %IDM_SAVEAS....
Code:
Case %IDM_CLOSE If IsTrue Need2SaveFlag Then sTmp = "Save Changes before exiting Y/N?" lResult = MessageBox(ByVal CbHndl, ByVal StrPtr(sTmp), ByVal StrPtr(g_szMine), ByVal %MB_ICONWARNING Or %MB_YESNO) If lResult = %IDYES Then Control Send CbHndl,%IDM_SAVE,%BM_CLICK,0,0 Function = %TRUE End If End If Case %IDM_OPEN If IsTrue Need2SaveFlag Then sTmp = "Save Changes before exiting Y/N?" lResult = MessageBox(ByVal CbHndl, ByVal StrPtr(sTmp), ByVal StrPtr(g_szMine), ByVal %MB_ICONWARNING Or %MB_YESNO) If lResult = %IDYES Then Control Send CbHndl,%IDM_SAVE,%BM_CLICK,0,0 End If End If Case %IDM_SAVE, %IDM_SAVEAS If LoWrd(CbWParam)= %IDM_SAVE And CbCtlMsg = %BN_CLICKED Then MsgBox "Save programatically pressed"
Comment