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

Search:

Type: Posts; User: Snakekaa

Page 1 of 38 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    1
    Views
    2,028

    CFolderPickerDialog and file list

    Hi there,
    My question: is there a way to make CFolderPickerDialog to show the list of files, not only folders from a certain location on disk?
    I have tried and made a lot of debugging stuff, but no...
  2. Replies
    10
    Views
    2,293

    Re: How to modify File menu width

    Let suppose I do not have a document just open the app.
    I have a method attached to a menu ID which changed File options width.
    In that method I tried this:



    Perhaps IDR_MAINFRAME is not...
  3. Replies
    10
    Views
    2,293

    Re: How to modify File menu width

    I do not have another menu to replace with.
    I just want to tell this menu that I don't need that width anymore.
    I saw that this behaviour is the default one in Windows app, but I do not want it.
  4. Replies
    10
    Views
    2,293

    Re: How to modify File menu width

    Where can I find that menu draw procedure?
    To override menu for this issue is just too much.
    Perhaps I can do it without overriding?
  5. Replies
    10
    Views
    2,293

    Re: How to modify File menu width

    I tried this as you adviced me and still no effect.
    Can anyone tell me where is the place the system computes necessary width in order for accelerators to be also displayed?
    I think knowing this I...
  6. Replies
    10
    Views
    2,293

    Re: How to modify File menu width

    I've already tried it, no use.
  7. Replies
    10
    Views
    2,293

    How to modify File menu width

    Hello,

    I derived a class from CRecentFileList in order to set the number of displayed chars for MRU.
    The problem is that if I open the app with 256 set for this number (it is read from .ini file)...
  8. Replies
    10
    Views
    1,599

    Re: Suplimentary border for dlg on Vista

    One more thing I want tot ask: how can I know which OS is running my software? I've tried WINVER, but when builds it gives me
  9. Replies
    10
    Views
    1,599

    Re: Suplimentary border for dlg on Vista

    I've tried and it gave 1 as result.
    I'm using SM_CYFRAME flag now; it gives me 8 and I subtract 2.
    It was the most reliable value to use, I've tried different flags there.
    Thank you.
  10. Replies
    10
    Views
    1,599

    Re: Suplimentary border for dlg on Vista

    Yes, I can. in the attached image the part with red (made in paint) is to show the exactly place where the suplimentary border cause my problem.

    kirants, I use GetWindowRect instead of...
  11. Replies
    10
    Views
    1,599

    Suplimentary border for dlg on Vista

    Hello to everyone!

    I have a modless dialog and in some circumstances, at the bottom of it an other one is displayed as child dlg.
    In XP, I have this code to set second dlg's position:


    ...
  12. Replies
    1
    Views
    1,293

    HeapAlloc break

    I have some undo/redo operations which are done on CTRL+Z/CTRL+Y. Sometimes, when trying to allocate some members dynamically, an assertion in HeapAlloc comes in the front when in Debug mode.

    I...
  13. Replies
    2
    Views
    1,732

    Re: "_AfxGetMouseScrollLines()"

    Sorry, I didn't seen the post date: September 20th, 1999, 06:45 PM. :(
    I had the same issue on my own and found the solution described, so I thought it might be usefull.
  14. Replies
    2
    Views
    1,732

    Re: "_AfxGetMouseScrollLines()"

    _AfxGetMouseScrollLines() is defined locally in viewscrl.cpp. Its code is:


    UINT PASCAL _AfxGetMouseScrollLines()
    {
    static UINT uCachedScrollLines;

    // if we've already got it and we're not...
  15. Replies
    2
    Views
    985

    Re: Drawing issues in Vista

    kirants, thank you for your answer! I solved these issues. In the app was used a wrong DC. The image was drawn on a surface's DC and I tried to draw the ellipse on the view's DC.

    The bad effect...
  16. Replies
    2
    Views
    985

    Drawing issues in Vista

    Hello all

    I have drawing problems with some code which works fine on other OS, but on Vista does not.

    // creates a new pen
    CPen PenW (PS_SOLID, 0, RGB (255, 255, 255)) ;
    //...
  17. Replies
    4
    Views
    3,775

    Re: LoadFrame, but hidden

    Try

    if (pFrame->LoadFrame(IDR_MAINFRAME,
    WS_OVERLAPPEDWINDOW | ~WS_VISIBLE, NULL,
    NULL))
    {
    if (bShow)
    { pFrame->ShowWindow(SW_SHOW);
    pFrame->UpdateWindow();
    }
  18. Replies
    1
    Views
    673

    Re: Breakpoints in ocx

    I solve the "mistery"...so topic closed.

    Anyway, I had the same .ocx for Release version registered. I registered the debug version with

    regsvr32 full_ocx_name.ocx

    but internally the old...
  19. Replies
    1
    Views
    673

    Breakpoints in ocx

    I have an .ocx and an .exe using it. I set to start the .ocx without the .exe and put some breakpoints in the .ocx in order to debug it. But there become unavailable (set to "?"). I am using Visual...
  20. Replies
    2
    Views
    566

    Re: Adding document in Window menu

    Thank you very much, gstercken.

    Yes, I knew that AddToRecentFileList adds them in Recent file list, but I suspect adding them in Window menu is a side-effect.

    Thanks again!

    Snakekaa
  21. Replies
    2
    Views
    566

    Adding document in Window menu

    Cand anyone please tell me who is responsible for adding the document's name in Window menu from a multidocument MFC app?
    Could it be AddToRecentFileList?

    Thank you in advance!
    Snakekaa
  22. Replies
    11
    Views
    1,009

    Re: Passing an 8-bit String

    Perhaps this would help you to clarify your issue:

    http://publib.boulder.ibm.com/infocenter/macxhelp/v6v81/index.jsp?topic=/com.ibm.vacpp6m.doc/language/ref/clrc03defbitf.htm

    Regards,
    Snakekaa
  23. Re: How to watch such a special variable in the watch window?

    In order to see the content of mat[i][j], you should use pointer arithmetics: so, mat[i][j] is similar to *(mat + i * n + j), where n is the number of columns your matrix has.

    Snakekaa
  24. Re: How to find the count of no. of commented lines?

    I don't know eihter about such a tool. But if you need one, you can easily write a .cpp/.h files parser to count commented/uncommented lines.

    Snakekaa
  25. Replies
    6
    Views
    7,369

    Re: Using NormalizeRect() and InflateRect()

    NormalizeRect() is invoked in order to be sure that the rectangle will have top smaller than bottom and left - smaller than right.

    Snakekaa
Results 1 to 25 of 933
Page 1 of 38 1 2 3 4





Click Here to Expand Forum to Full Width

Featured