Search Results - CodeGuru Forums
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.05 seconds.

  1. Replies
    10
    Views
    807

    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...
  2. Replies
    10
    Views
    807

    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.
  3. Replies
    10
    Views
    807

    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?
  4. Replies
    10
    Views
    807

    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...
  5. Replies
    10
    Views
    807

    Re: How to modify File menu width

    I've already tried it, no use.
  6. Replies
    10
    Views
    807

    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)...
  7. Replies
    10
    Views
    935

    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
  8. Replies
    10
    Views
    935

    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.
  9. Replies
    10
    Views
    935

    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...
  10. Replies
    10
    Views
    935

    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:


    ...
  11. Replies
    1
    Views
    795

    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...
  12. Replies
    2
    Views
    1,091

    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.
  13. Replies
    2
    Views
    1,091

    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...
  14. Replies
    2
    Views
    607

    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...
  15. Replies
    2
    Views
    607

    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)) ;
    //...
  16. Replies
    4
    Views
    2,436

    Re: LoadFrame, but hidden

    Try

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

    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...
  18. Replies
    1
    Views
    468

    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...
  19. Replies
    2
    Views
    365

    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
  20. Replies
    2
    Views
    365

    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
  21. Replies
    11
    Views
    907

    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
  22. 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
  23. 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
  24. Replies
    6
    Views
    2,593

    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
  25. Replies
    6
    Views
    2,593

    Re: Using NormalizeRect() and InflateRect()

    Width and height will be always positive, but if you don't normalize rectangle and you don't intend to use Width() and Height() methods for CRect class, you should compute them as

    width =...
Results 1 to 25 of 932
Page 1 of 38 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center