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

Search:

Type: Posts; User: Salvadoravi

Page 1 of 18 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    4,250

    How to set the parent dialog??

    Hi all,

    I’ve created a modeless dialog from my main dialog as follows:



    m_pContainerDlg = new CDlgContainer(NULL, this);
    m_pContainerDlg->Create(CDlgContainer::IDD, GetDesktopWindow());...
  2. Replies
    5
    Views
    6,119

    Re: Drawing text on a bitmap

    Guys,

    I've tried,



    CRect rect;
    GetClientRect(&rect);

    CPaintDC dc(this); // device context for painting
  3. Replies
    5
    Views
    6,119

    Drawing text on a bitmap

    Hi all,

    I wrote a simple clock that shows the time over bitmap as follows:



    void CMyClock::OnPaint()
    {
    CRect rect;
    GetClientRect(&rect);
  4. No grid lines in a disabled list control??

    Hi all,

    I have a list control with LVS_REPORT & LVS_EX_GRIDLINES style.

    My problem is that when the list control is disabled the grid lines disapear.

    Anyone know how to "keep" the grid lines...
  5. Re: Disable the select button in CMFCToolBar

    Perfect! Thank you!!
  6. [RESOLVED] Disable the select button in CMFCToolBar

    Hi all,

    I have a CMFCToolBar with 2 buttons and I want to disable all the buttons if any of them been clicked

    I added the following message map:
    ON_COMMAND(ID_TOOLBAR_MY_BUTTON1,...
  7. Replies
    1
    Views
    802

    Re: CTabCtrl & Common Control 6

    Please Ignore it's working fine!! Sorry
  8. Replies
    1
    Views
    6,866

    Can I use CMFCTabCtrl in a dialog?

    Hi all,

    Is it possible to use CMFCTabCtrl in a dialog??

    Many thanks!!
  9. Replies
    1
    Views
    802

    CTabCtrl & Common Control 6

    Hi Guys,

    I've recently added support for common control 6 in my dailog.

    #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0'...
  10. Replies
    1
    Views
    553

    Cplitter & Views

    Guys please help!

    I've created my first Doc/View project using Visual Studio Default project.
    I've added a splitter and I'm loading an HTML view to the right side and it works as expected.
    ...
  11. Replies
    4
    Views
    1,245

    Re: Best way to toggle between views

    Thanks GCDEF,

    I'll take a step back.

    The reason why I'm implementing it in the way I've described above is because I need to extend a fully mature dialog program that probably cannot be...
  12. Replies
    4
    Views
    1,245

    Best way to toggle between views

    Hi all,

    I have a Dialog project and I am loading a form view inside a frame:



    int CMyDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    m_pFrame =...
  13. Replies
    6
    Views
    3,089

    Re: SetWindowPos problem.

    Cilu, thank you for you quick reply.

    I think that I didn't clarify my question good enough.

    The users are unable to resize the dialog but they can still reposition the window (by clicking on...
  14. Replies
    6
    Views
    3,089

    Re: SetWindowPos problem.

    No, the users are not allowed to change the dialog size.
  15. Replies
    6
    Views
    3,089

    SetWindowPos problem.

    Hi all,

    I'm using SetWindowPos() to resize my dialog size according to the program state.
    (A state can be received at any point during the program execution.)

    My problem is that the dialog...
  16. Replies
    2
    Views
    1,030

    SetWindowPos() problem

    I have a small MFC dialog app that gets an event notification when I receive an email.
    In my OnEmailEvent() event handler I resize the dialog so it will fit to the size of the email.



    void...
  17. Replies
    4
    Views
    1,230

    Re: How to close a dialog?

    The problem is that I don't know what is the hwnd of the new created modal until I call DoModal().
    The problem is that DoModal() blocks so I can't get the hwnd anyway ...

    Advice??
  18. Replies
    4
    Views
    1,230

    How to close a dialog?

    Gurus,

    My main dialog creates a modal dialog which in turn creates another modal dialog when the user click on a button.

    /////////////////////////////
    // Main Dialog //...
  19. Re: Where to initialize CRITICAL_SECTION in a singleton?

    "The problem we're concerened with, involves at least to separately compiled source files, each of which contains at least one non local static object (i.e an object that's global, namespace scope or...
  20. Re: Where to initialize CRITICAL_SECTION in a singleton?

    Thanks again for your inputs



    You suggestion is the implemention of the mono state pattern not a singleton.


    To initialize a critical section you need to call...
  21. Re: Where to initialize CRITICAL_SECTION in a singleton?

    Thank you for your suggestion, I have the book but unfortunaltely The implemention of the mutex in the book is opaque.


    Thanks again!!
  22. Re: Where to initialize CRITICAL_SECTION in a singleton?

    Thank you very much fo your input,



    Initializing a critical section that has already been initialized results in undefined behavior.
    The code is not thread safe.
  23. Where to initialize CRITICAL_SECTION in a singleton?

    Hi all,

    I want to use a CRITICAL_SECTION in my singleton class to synchronize access by multiple threads.

    I need to lock the singleton even after initialization so the double checked lock...
  24. Replies
    2
    Views
    1,180

    InterLocked and align

    Hi all,

    Many InteLocked...... functions like InterLockedIncremet
    http://msdn.microsoft.com/en-us/library/ms683614(VS.85).aspx
    have the following quote in MSDN:

    "The variable pointed to by...
  25. Replies
    2
    Views
    2,954

    Re: AfxMessageBox position

    Made my day, thank you!
Results 1 to 25 of 446
Page 1 of 18 1 2 3 4





Click Here to Expand Forum to Full Width

Featured