CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mesajflaviu

Page 1 of 16 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Reduce the computation time of the queries above using indexes

    I create an index for that table:


    CREATE INDEX id_index ON patients(patient_id);

    and removing index:


    DROP INDEX id_index;
  2. Reduce the computation time of the queries above using indexes

    Hello. I have few SQL queries. Something like this:


    number of patients born on Januray 1st, 2000
    number of patients born before Januray 1st, 2000
    number of patients having firstname "JOHN"...
  3. Re: Obtaining LogonDomain for logged on Windows Active Directory user

    Have you tried this code as administrator ?
  4. Replies
    3
    Views
    1,444

    Re: Initially maximize window

    In your CChildFrame header:


    protected:
    virtual void ActivateFrame(int nCmdShow = -1);

    implementation:


    void CChildFrame::ActivateFrame(int nCmdShow)
  5. Re: How do you specify Object Oriented Programming languages class and structure ?

    You could download a good learning site, such as https://www.learncpp.com (where you find classes and struct and whatever) with https://www.httrack.com/page/2/ and you learn at your home :)
  6. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Another attempt:


    void CMainFrame::On0Restore()
    {
    // TODO: Add your command handler code here

    ShowWindow(SW_RESTORE);
    DWORD dwThreadID = GetWindowThreadProcessId(m_hWnd, NULL);...
  7. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    The code from above is not working if the app NNN is started from Windows Explorer and is activated through left click on balloon (not on icon left click)
  8. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    And did you tried that code by clicking on tray balloon ? And when you tried this code have you started the application not from Visual Studio debugger but from Windows Explorer ?
  9. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I guess I found the miss understanding here: I need to be functional the left click on tray balloon, not left click on the icon.

    So, let say we have the same call to CMainFrame::On0Restore method...
  10. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    When I moved the click on balloon code to icon left click the MDI app activation has been made, indeed. But I need this behavior on balloon click, not on icon left click. So, I am thinking how to...
  11. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Sorry, I saw your message just now. Can you explain what you said with: "The OnRestore code was working" ? I have tried again, but I saw no change (meant is not working correctly).
    Thank you.
  12. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I have made those CSystemTray changes only because GCDEF told me that. But I don't know what is the purpose of this change. Sorry. The reported issue is on activating CMainFrame (MDI) window. And...
  13. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I have tried:


    void CMainFrame::On0Restore()
    {
    // TODO: Add your command handler code here

    ShowWindow(SW_RESTORE);
    // BringWindowToTop();
    // SetForegroundWindow();
  14. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I uploaded new version of project, I clean up CSystemTray class from CE stuff, but only from CSystemTray::OnTrayNotification method. I added the case for WM_LBUTTONDOWN, where I put a TRACE macro.
  15. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Well, I would that, but it would help me ? Because the issue here is that CMainFrame is not activate it. Is shown at user click on tray balloon, but is not active . .. see my image and my sample...
  16. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    No, on icon single left button event is happen nothing. On icon double click the app is shown, on icon right click the context menu is shown and on click on tray balloon is calling...
  17. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    @GCDEF, thank you for your time and sorry if I cause you any issue. I did checked what you said, but in that location, CSystemTray::OnTrayNotification, I don't saw any problem. In that handler, is...
  18. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I updated the sample project because a class inside the project has errors in x64 configuration. Thank you for your time.
  19. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Yes, you are right, but please do this trial from Windows Explorer. I mean: go in Debug folder, and start the app from there, and wait 5 seconds, and then click on that balloon. This is the real...
  20. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I have built a test program that illustrate the issue. Just start it and wait 5 seconds. Should see a system tray icon balloon. Click on that balloon, and you'll see that the main frame is shown, but...
  21. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    I'll try to make a test project. The same result I got if I notify the user with a random system tray balloon and user click to that balloon, the behavior is the same. So, the issue is the same as I...
  22. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    In fact, the app has single instance pattern. So, the issue occur when app is already started, and when user try to start another instance and a system tray balloon is shown, and user click on this...
  23. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Ok, I'll try to create a small project for this. I don't know if I could built today. But I come back. Seem very strange this issue because the called methods seem reliable and clear.
  24. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Is coming from a system tray icon right click menu item.
  25. Replies
    44
    Views
    14,524

    Re: Activate MDI window

    Of course that I've debugged. The only way to get the real focus is to call MessageBox (or a modal dialog) after I bring the MDI window to foreground. But this is not what I want. I only need to get...
Results 1 to 25 of 377
Page 1 of 16 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)