How to close all child (modal) dialogs

Hi,

I have a modal dialog1 that displays another modal dialog2, which in turn
can display another dialog3, etc.
In my application it is possible that dialog1 gets a user defined windows
message.
In this message handler he may conclude to close all the child windows
(dialog2, dialog3, etc.).
I'm using EnumChildWindows, but it doesn't seem to work.

So I have something like this:

// Callback function for EnumChildWindows
BOOL CALLBACK EnumCloseDialog(HWND hwndChild, LPARAM lParam)
{
    PostMessage(hwndChild,WM_CLOSE,0,0);
    // CloseWindow(hwndChild) doesn't work either,
    // it's like this WM_CLOSE message never arrives
    return TRUE;
}

// User pressed the something button
void CDialog1::OnButtonSomething()
{
    CDialog2 Dlg(this); // Setting this as the parent
    Dlg.DoModal();
}

LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
{
    if (m_bCloseAllChildren)  EnumChildWindows(m_hWnd,EnumCloseDialog,0);
    // Nothing happens, dialog 2 doesn't disappear!
}

What am I doing wrong?

Colin B


0
colinovic (4)
2/4/2004 11:11:39 AM
vc.mfc 33608 articles. 0 followers. Follow

6 Replies
3783 Views

Similar Articles

[PageSpeed] 32

> What am I doing wrong?
Try pDlg2->EndDialog(IDOK) or pDlg2->EndDialog(IDCANCEL) don't even need
CDialog1::OnSomeMessage() or EnumCloseDialog()...

Another thing is that if these child windows with WS_CHILD and not normal
popup windows with WS_POPUP, your child Dlg should be killed automatically
when your main dlg in kill cause of WS_CHILD as if you had a button ctrl and
not a child dlg...


0
bj7lewis (91)
2/4/2004 1:48:45 PM
OK, my dialogs all have the popup style, so trying to get to them using
EnumChildWindows was a bad idea.
If I use EnumWindows instead the code succeeds in killing dialog 2.
However, if dialog 2 is also showing a dialog 3 then this dialog is not
closed.
This probably is because it's not owned by dialog1 but by dialog2.
I would have thought that when posting the WM_CLOSE message shortly
thereafter
the code would exit dialog2.DoModal() (see below) and after exiting the
function scope
dialog2 would be deleted and thus dialog3 automatically also.
This is however not the case.

// Callback function for EnumWindows
BOOL CALLBACK EnumEndOwnedDialog(HWND hwndChild, LPARAM lParam)
{
    HWND hWndOwner = (HWND)lParam;

    // Owner match?
    if (GetWindow(hwndChild,GW_OWNER) == hWndOwner)
    {
        // Close the dialog
        PostMessage(hwndChild,WM_CLOSE,0,0);
    }
    return TRUE;
}

// User pressed the something button
void CDialog1::OnButtonSomething()
{
    CDialog2 Dlg;
    Dlg.DoModal(); // Code hangs here untill dialog3 is closed by the user
}

LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
{
    if (m_bCloseAllChildren)  EnumWindows(EnumEndOwnedDialog(LPARAM)m_hWnd);
}



0
colinovic (4)
2/4/2004 4:48:27 PM
Important......I don't even know if it is possible for your parent window to
get a message while it has a modal dialogbox open.

But anyway, I would do this,  I would declare the Dialog2 variable in my
class definition.  that way you have access to it all through out your class
and then when ever the message comes through to get rid of things then
simply call m_Dialog.OnOK(), or m_Dialog.EndDialog()... or whatever other
means which you want to close the dialog. Now you can do the same thing in
the child dialog.
I would look into modeless if I were you. If you have more than one dialog
at the same level (which you won't if you are using Modal dialogs), you can
use a CPtrArray to hold the list of the dialog variables.


 // User pressed the something button
 void CDialog1::OnButtonSomething()
 {
     m_Dlg.DoModal();
 }

 LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
 {
     if (m_bCloseAllChildren)
    {
        m_Dlg.SendMessage(WM_CLOSE);        //for modeless
        or simply
        m_Dlg.OnOK();                                        //for modal
    }
 }

Ali R.




"Colin Bouckaert" <colinovic@hotmail.com> wrote in message
news:40212211$0$317$ba620e4c@news.skynet.be...
> OK, my dialogs all have the popup style, so trying to get to them using
> EnumChildWindows was a bad idea.
> If I use EnumWindows instead the code succeeds in killing dialog 2.
> However, if dialog 2 is also showing a dialog 3 then this dialog is not
> closed.
> This probably is because it's not owned by dialog1 but by dialog2.
> I would have thought that when posting the WM_CLOSE message shortly
> thereafter
> the code would exit dialog2.DoModal() (see below) and after exiting the
> function scope
> dialog2 would be deleted and thus dialog3 automatically also.
> This is however not the case.
>
> // Callback function for EnumWindows
> BOOL CALLBACK EnumEndOwnedDialog(HWND hwndChild, LPARAM lParam)
> {
>     HWND hWndOwner = (HWND)lParam;
>
>     // Owner match?
>     if (GetWindow(hwndChild,GW_OWNER) == hWndOwner)
>     {
>         // Close the dialog
>         PostMessage(hwndChild,WM_CLOSE,0,0);
>     }
>     return TRUE;
> }
>
> // User pressed the something button
> void CDialog1::OnButtonSomething()
> {
>     CDialog2 Dlg;
>     Dlg.DoModal(); // Code hangs here untill dialog3 is closed by the user
> }
>
> LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
> {
>     if (m_bCloseAllChildren)
EnumWindows(EnumEndOwnedDialog(LPARAM)m_hWnd);
> }
>
>
>


0
nospam7515 (2084)
2/4/2004 4:59:19 PM
Apparently it is possible for the parent window to get a message while it
has
a modal dialogbox open (or I ate too many mushrooms).
OnOK() is a protected member of CDialog so I can't use that, but EndDialog()
is not.
....
Sadly this method results in the same behaviour.
Upon calling Dialog2::EndDialog() from within the message handler Dialog2
dissapears
but Dialog3 stubbornly stays shown untill it is ended by the user and then
the code comes
out of Dialog2::DoModal().

Colin B.

"Ali R." <nospam@nospam.com> wrote in message
news:Hx9Ub.58$CJ1.33414203@newssvr11.news.prodigy.com...
> Important......I don't even know if it is possible for your parent window
to
> get a message while it has a modal dialogbox open.
>
> But anyway, I would do this,  I would declare the Dialog2 variable in my
> class definition.  that way you have access to it all through out your
class
> and then when ever the message comes through to get rid of things then
> simply call m_Dialog.OnOK(), or m_Dialog.EndDialog()... or whatever other
> means which you want to close the dialog. Now you can do the same thing in
> the child dialog.
> I would look into modeless if I were you. If you have more than one dialog
> at the same level (which you won't if you are using Modal dialogs), you
can
> use a CPtrArray to hold the list of the dialog variables.
>
>
>  // User pressed the something button
>  void CDialog1::OnButtonSomething()
>  {
>      m_Dlg.DoModal();
>  }
>
>  LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
>  {
>      if (m_bCloseAllChildren)
>     {
>         m_Dlg.SendMessage(WM_CLOSE);        //for modeless
>         or simply
>         m_Dlg.OnOK();                                        //for modal
>     }
>  }
>
> Ali R.
>
>
>
>
> "Colin Bouckaert" <colinovic@hotmail.com> wrote in message
> news:40212211$0$317$ba620e4c@news.skynet.be...
> > OK, my dialogs all have the popup style, so trying to get to them using
> > EnumChildWindows was a bad idea.
> > If I use EnumWindows instead the code succeeds in killing dialog 2.
> > However, if dialog 2 is also showing a dialog 3 then this dialog is not
> > closed.
> > This probably is because it's not owned by dialog1 but by dialog2.
> > I would have thought that when posting the WM_CLOSE message shortly
> > thereafter
> > the code would exit dialog2.DoModal() (see below) and after exiting the
> > function scope
> > dialog2 would be deleted and thus dialog3 automatically also.
> > This is however not the case.
> >
> > // Callback function for EnumWindows
> > BOOL CALLBACK EnumEndOwnedDialog(HWND hwndChild, LPARAM lParam)
> > {
> >     HWND hWndOwner = (HWND)lParam;
> >
> >     // Owner match?
> >     if (GetWindow(hwndChild,GW_OWNER) == hWndOwner)
> >     {
> >         // Close the dialog
> >         PostMessage(hwndChild,WM_CLOSE,0,0);
> >     }
> >     return TRUE;
> > }
> >
> > // User pressed the something button
> > void CDialog1::OnButtonSomething()
> > {
> >     CDialog2 Dlg;
> >     Dlg.DoModal(); // Code hangs here untill dialog3 is closed by the
user
> > }
> >
> > LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
> > {
> >     if (m_bCloseAllChildren)
> EnumWindows(EnumEndOwnedDialog(LPARAM)m_hWnd);
> > }
> >
> >
> >
>
>


0
colinovic (4)
2/5/2004 9:13:43 AM
I've found a solution by using a recursive method!
Tweaked the callback function...

BOOL CALLBACK EnumEndOwnedDialogs(HWND hWnd, LPARAM lParam)
{
    // Get the handle of the owner
    HWND hWndOwner = (HWND)lParam;

    // Owner matches?
    if (GetWindow(hWnd,GW_OWNER) == hWndOwner)
    {
        // Close his own dialogs -- this is were the whole thing becomes
recursive
        EnumWindows(EnumEndOwnedDialogs,(LPARAM)hWnd);

        // Close the dialog
        PostMessage(hWnd,WM_CLOSE,0,0);

        // Stop enumeration, don't do this if multiple owned dialogs are
possible
        return FALSE;
    }

    // Continue enumeration
    return TRUE;
}

Thanks for all the tips leading me here.
Colin B.

"Colin Bouckaert" <colinovic@hotmail.com> wrote in message
news:402208f7$0$767$ba620e4c@news.skynet.be...
> Apparently it is possible for the parent window to get a message while it
> has
> a modal dialogbox open (or I ate too many mushrooms).
> OnOK() is a protected member of CDialog so I can't use that, but
EndDialog()
> is not.
> ...
> Sadly this method results in the same behaviour.
> Upon calling Dialog2::EndDialog() from within the message handler Dialog2
> dissapears
> but Dialog3 stubbornly stays shown untill it is ended by the user and then
> the code comes
> out of Dialog2::DoModal().
>
> Colin B.
>
> "Ali R." <nospam@nospam.com> wrote in message
> news:Hx9Ub.58$CJ1.33414203@newssvr11.news.prodigy.com...
> > Important......I don't even know if it is possible for your parent
window
> to
> > get a message while it has a modal dialogbox open.
> >
> > But anyway, I would do this,  I would declare the Dialog2 variable in my
> > class definition.  that way you have access to it all through out your
> class
> > and then when ever the message comes through to get rid of things then
> > simply call m_Dialog.OnOK(), or m_Dialog.EndDialog()... or whatever
other
> > means which you want to close the dialog. Now you can do the same thing
in
> > the child dialog.
> > I would look into modeless if I were you. If you have more than one
dialog
> > at the same level (which you won't if you are using Modal dialogs), you
> can
> > use a CPtrArray to hold the list of the dialog variables.
> >
> >
> >  // User pressed the something button
> >  void CDialog1::OnButtonSomething()
> >  {
> >      m_Dlg.DoModal();
> >  }
> >
> >  LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
> >  {
> >      if (m_bCloseAllChildren)
> >     {
> >         m_Dlg.SendMessage(WM_CLOSE);        //for modeless
> >         or simply
> >         m_Dlg.OnOK();                                        //for modal
> >     }
> >  }
> >
> > Ali R.
> >
> >
> >
> >
> > "Colin Bouckaert" <colinovic@hotmail.com> wrote in message
> > news:40212211$0$317$ba620e4c@news.skynet.be...
> > > OK, my dialogs all have the popup style, so trying to get to them
using
> > > EnumChildWindows was a bad idea.
> > > If I use EnumWindows instead the code succeeds in killing dialog 2.
> > > However, if dialog 2 is also showing a dialog 3 then this dialog is
not
> > > closed.
> > > This probably is because it's not owned by dialog1 but by dialog2.
> > > I would have thought that when posting the WM_CLOSE message shortly
> > > thereafter
> > > the code would exit dialog2.DoModal() (see below) and after exiting
the
> > > function scope
> > > dialog2 would be deleted and thus dialog3 automatically also.
> > > This is however not the case.
> > >
> > > // Callback function for EnumWindows
> > > BOOL CALLBACK EnumEndOwnedDialog(HWND hwndChild, LPARAM lParam)
> > > {
> > >     HWND hWndOwner = (HWND)lParam;
> > >
> > >     // Owner match?
> > >     if (GetWindow(hwndChild,GW_OWNER) == hWndOwner)
> > >     {
> > >         // Close the dialog
> > >         PostMessage(hwndChild,WM_CLOSE,0,0);
> > >     }
> > >     return TRUE;
> > > }
> > >
> > > // User pressed the something button
> > > void CDialog1::OnButtonSomething()
> > > {
> > >     CDialog2 Dlg;
> > >     Dlg.DoModal(); // Code hangs here untill dialog3 is closed by the
> user
> > > }
> > >
> > > LRESULT CDialog1::OnSomeMessage(WPARAM, LPARAM)
> > > {
> > >     if (m_bCloseAllChildren)
> > EnumWindows(EnumEndOwnedDialog(LPARAM)m_hWnd);
> > > }
> > >
> > >
> > >
> >
> >
>
>


0
colinovic (4)
2/5/2004 12:26:00 PM
> Apparently it is possible for the parent window to get a message while it
> has a modal dialogbox open (or I ate too many mushrooms)...
This is cause you have only one MSG loop that is in your CWinApp obj and
when your dlg's current running handler is done the execution returns to the
MSG loop and is ready to get the next MSG. This is how your dlg processes
it's own msg to stay alive and how the GUI of main window stays painted in
the event to a much needed repainting...


0
bj7lewis (91)
2/5/2004 1:47:32 PM
Reply:

Similar Artilces:

Outlook 2003 Professional doesn't close.
Every time I close Outlook, I get the following message when I click on the icon in the task bar. "Outlook is not responding. If you are using an Exchange server e-mail account, you can cancel pending server requests by clicking the Outlook icon in the notifications area, and then clicking Cancel Server Request on the shortcut menu." Anyone have any idea what this is relating to? I'm on WinXP Pro, using Office 2002 pro. My ISP is running a Windows 2003 Server. Thanks. Common causes for Outlook remaining active is a PDA that is docked or Fax software, especially WinFax....

filter closed appointments from synchronization ? (CRM-Outlook-Client)
Hello CRM 4.0 Specialists, we have the following problem in our company: we have too less memory in our Exchange - only 25 MB per person. And CRM tries to put all appointments - even already closed - in Outlook. This definitivly kills our free space. Is there a possibility (even a dirty hack) to minimize this synchronization ? We only need the open appointments in Outlook. Any help would be great! Kind regards Matthias ...

custom views dialog box
Hi. What exactly is the point of the custom views dialog box (found under view menu). When I access it, there is nothing listed under 'view'. Is this supposed to be a list of all the worksheets? This is where you add your views (using the Add button). A view contains your current setup of hidden/unhidden rows/columns, filter settings, ... Once added and they are on the list for you to recall at a click. HTH. Best wishes Harald "Wessel" <Wessel@discussions.microsoft.com> skrev i melding news:1B25C374-CC16-411D-9D50-7FA4CC6CE15D@microsoft.com... > Hi. What exact...

Dialog Message Pump Modification
Well, here I go again with yet another variation on this same issue. I have a docked, modeless dialog box in my MDI application. Everything works fine except that the Windows dialog manager seems to be gobbling up all system keys when the dialog box has the focus, which prevents my menus from working. I found the following code, and it allows my application's accelerators to work: BOOL CPanel::PreTranslateMessage(MSG* pMsg) { CMainFrame *pMainFrame = (CMainFrame*)AfxGetMainWnd(); HACCEL hAccel = pMainFrame->m_hAccelTable; if (hAccel && ::TranslateAccelerator(pMainFr...

disable reports daterange dialog to show up twice
Hi, I created a report with daterange parameters. Everythings works fine but when I want to print some report, the report asks the user again for the date parameters. Having installed the CRM update CRM1.2-KB834913-Server.exe which should repair this bug, I noticed no change. The reports always asks twice for the parameters. Is there any secret for this mystery... Greetings Thomas Ott are all these parameters in a single report or are you using sub reports as well? -- John O'Donnell Microsoft CRM MVP http://www.microsoft.com/BusinessSolutions/Community/CRMFaqLanding.aspx "Th...

IE CRM closes after login
Immediately after the login screen the browser dissapears. I have this problem on only 1 PC (windows XP & IE 6 SP1). After I completely reinstalled it, it worked for a while, but now it is doing it again. Please help! I cannot reinstall the everything on this PC every week.. We have seen browser problems when you have added tools into the browser like the google search bar etc make sure the browser is runnng with no addiitonal addins "Michael Szabo" <mihaisz@bondweb.com> wrote in message news:0b5301c3893c$32d94a10$a401280a@phx.gbl... > Immediately after the login ...

Closing another database with VBA
Hi, I’m having a problem with the code to do the following… 1- A user opens a file called Core. 2- Upon opening the splash screen (on the Form_Load event), it compares a version number it finds within the database to one that is in another database called Data. 3- If the versions are different, the Core file opens the Updater file. 4- The Updater file closes the Core file. 5- The Updater file copies the latest version of the Core file (located somewhere else) and replaces the first one with the latest version. 6- The Updater opens the newly copied Core file. 7- The Updater closes itself. ...

Mail downloads even when Outlook is closed
Hello, I had a weird experience that maybe someone can explain. Before I left for work two days ago I read my email and closed Outlook (I know I did--I double checked). At work later on I checked my email via webmail and the inbox was empty-- unusual. When I went home I opened Outlook and found many unread emails that had come in during the day, arriving well after I had closed Outlook and left home. How is it possible that Outlook can download mail even if it is closed? I was so sure that it must have been an error on my part that today I triple checked that I'd definitely closed Outloo...

Auto Close POS
Hello All, I would like to present a suggestion and pose a question of the same. We have two stores and in both locations we have found little use for NOT posting a z report at the end of each day (as in a blind close). That is to say, all of our cash reconciliation reporting is required to be closed daily and then the zz report to be run on the last day of the month. There is never to be any deviation from this. We have, in fact, been faced with the problem of our staff (cashiers) forgetting to post the z or zz report on time. And so my question (suggestion, if this has not been addr...

excel vba
is there a way to disable the close button on a userform such as password screen that would disable a person from being able to clos the userform by hitting the x button in the top right. I have it se up so that they have to enter a password to view the page, bu overlloked the fact that they can simply hit the close button. An ideas -- Message posted from http://www.ExcelForum.com Hi, Use the form's QueryClose Method Here is the (pasted) example from the Excel VBA Help file Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) 'Prevent user from closing ...

Users of a BU cannot close workflow activities
Hello there! I have a problem with all users from a specific BU. This BU is the parent of all the rest and has 5 users. Neither of them can Close Activities coming from workflow rules. I have granted them all privileges, even System Administrator and no luck... It is strange because they can see the button "Actions --> Close Task" and, when they press Complete, they get the following error : Error Details: You do not have sufficient permissions or access rights to perform this operation. Error Number: 0x80070005 Query String: /Activities/Task/edit.aspxid={4B1490CC-D821-49B1-9F6C...

Exchange 2003
Exchange 2003 SP2 One Parent with three Windows 2003 Domains Is there a way to remove Exchange references/schema from the child domains. We only use Exchange at the parent domain and the child domains cause problems. For example, if the Information Store service is restarted and there is an incorrect entry in the mapisvc.inf file, we get all kinds of errors in the Event Log. Basically, something is automatically adding the names of child domain controllers to mapisvc.inf entries: [MSEMS_MUIDEMSAB_Section] UID=dca740c8c042101ab4b908002b2fe182 66190003=09000000 6602001e=child-dc-server I...

Getting rid of: "The data file 'Personal Folders' was not closed properly. The file is being checked for problems."
I have been sharing my Outlook (2002) mail folders and settings between my laptop and my desktop computers by moving the entire outlook.pst back and forth. This has MOSTLY been working quite nicely. But ever since I started doing this, MOST (but not ALL) start-ups of Outlook have produced the following message: "The data file 'Personal Folders' was not closed properly. The file is being checked for problems." Then I have to wait (sometimes as long as 10 minutes) for Outlook to do whatever it is doing. Can anyone advise as to how to get rid of this irritating behavior? ...

Creating a closed Phone activity in a single step
Hi, I have looked absolutely everywhere for a solution to this. As many of our processes are still outside of MS CRM much of our outbound sales/prospecting calling is driven by external processes. (example 1) our receptionist (who has no CRM access) gets a call from an existing customer interested in purchasing product from us. The account manager gets the message, looks up the record in CRM and immediately calls them. We need the sales person to record a phone activity to say they've 'touched' this account, however this isn't a to-do item, it is already closed. ...

how to code "close without saving"
How can I code a form to close without saving. do not want to even save the autonumber Any help here will be appreciated. Thanks in advance Dave In news:6BDC4402-6754-45DE-9A34-761EEE988292@microsoft.com, Dave <dave@accessdatapros> wrote: > How can I code a form to close without saving. do not want to even > save the autonumber > > Any help here will be appreciated. You can undo the form before closing it, to prevent the current record from being saved (assuming that it hasn't been saved already): Me.Undo DoCmd.Close acForm, Me.Name, acSaveNo (Note that ...

How to get a Browse for Folder Dialog??
I would like to display a dialog for the user to select a folder rather than a file (as in CFileDialog). Is there a simple way to do this? Thanks in advance. Bob Bob Curry wrote: > I would like to display a dialog for the user to select a folder rather than > a file (as in CFileDialog). Is there a simple way to do this? You are looking for BrowseForFolder. Check MSDN Regards, Danny Try this TCHAR szFilters[]=_T("MyFile (*.dat)|*.dat|All Files(*.*)|*.*||"); CFileDialog m_ldFile(TRUE,_T ("dat"),_T("*.dat"),OFN_FILEMUSTEXIST,szFilters); m_ldFil...

Shortcut in OPEN DIALOG BOX
How do I create a shortcut icon down the left side of the OPEN DIALOG BOX to open a specific folder? Currently, generic shortcuts like, DESKTOP, FAVORITES, HISTORY, etc. are listed, but I rarely use them. Hi do File / Open find the folder that you want to add (click on it once) then click on Tools / Add to My Places it will get added to the bottom, then right mouse click on it and choose move up hope this helps Cheers JulieD "J.D." <anonymous@discussions.microsoft.com> wrote in message news:053601c48458$f89688e0$a301280a@phx.gbl... > How do I create a shortcut icon ...

Move a dialog based application without the title bar
Hi, I have created a dialog based application without a title bar, and want to move the dialog using the left mouse button. I tried MoveWindow nut the window was streching instead of moving !!! Can anyone help me please? >I have created a dialog based application without a title bar, and >want to move the dialog using the left mouse button. >I tried MoveWindow nut the window was streching instead of moving !!! MoveWindow can resize and move the window, so you've got a coding problem. If you use SetWindowPos you can specify the SWP_NOSIZE option to have it ignore the cx & c...

Dialog box after display DPI setting change
In Windows XP, I set the display DPI setting as Custom setting (109% normal size (105 dpi)). This resulted in problems in viewing some of the dialog boxes in Excel. For instance, I cannot see the 2nd row of tabs in cell property dialog box. Does anyone know how to work around this? (Other applications may have the same problems for the same reason.) ...

Closed Account
i changed status on one of my account to close, but when i click on banking, it still shows up but greyed out. is there anyways to remove it from the view? In microsoft.public.money, w0rm3y wrote: >i changed status on one of my account to close, but when i click on banking, >it still shows up but greyed out. is there anyways to remove it from the >view? From the account list, SortAccountListBy->HideClosedAccounts "Cal Learner-- MVP" wrote: > In microsoft.public.money, w0rm3y wrote: > > >i changed status on one of my account to close, but when i cli...

Posting to a two year old, closed fiscal year
I need to post a G/L Entry to Fiscal Year 2005. Of course, I've already closed FY2005 and FY2006. According to TK 851093 and the GP Documentation, there is no way to post to a closed fiscal year that is more than one closed fiscal year ago. Has anyone found, devleoped, or used an "undocumented" procedure to accomplish posting to an older fiscal year. -- Thanks in advance, Tom Hamill Business Systems Analyst Athenaheatlh, Inc. Tom, The only way to do this is to contact Microsoft Professional Services. Then can open 2006 back up, thus making 2005 the last historical y...

which evet will fire when the client closes its connection with Socket server?
Hi, I created a Stream socket server derived from CSocket and some clients r connected to it.Which event is triggered when the Client closes its connection with server? or How do i know there is no connection between server and client? Reny ...

Closing Money w/o updating
When I was using Managing Your Money, it was possible to close the application without saving the data I just entered. This was useful if I made some mistake that was just too bothersome to undo. Is there any way to do that in Money? I'm using Premium 2005. I suppose I could restore from the previous backup, but that seemed like a lot of work, from my initial reading of it. Money is effectively a database and databases apply changes immediately; the only way to handle your problem is to always ensure that you backed up the last time you exited Money. You can then restore that if...

Using a dialog as a control
Hi, I'm trying to find a way to place a dialog without a frame onto another dialog as a control. All controls are CWnds, and so is a CDialog, so it seems to me that there ought to be a way to do this. I could bring the secondary dialog up and then move it when the main dialog moved, but I would consider that too much of a hack. It seems that there has to be a way to get the secondary dialog to recognize the main dialog as its parent window, no? I just ran across some code in which someone used this type of trick to simulate pages in a tab control, so I know it can be done... but I...

Min Max Close
Can someone tell me how to change RMS so that the Min, Max and Close buttons appear. thanks, This is a multi-part message in MIME format. ------=_NextPart_000_05F9_01C77143.D2BE41A0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Chris, Ctrl + F6 Screen | Transaction screen tab | Window button on bottom = right | check Show resizable border --=20 Jeff=20 Check Point Software =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3...