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

Search:

Type: Posts; User: rmirani

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    379

    Re: Prompt "New file" procedure

    Wauw, thank you!
    I was not aware it was possible to do that.
    That's really great!
  2. Replies
    4
    Views
    379

    Prompt "New file" procedure

    Hi,

    I currently have a program where, by either pressing Ctrl+N or by going to "File->New" in the menu a new file is prompted.
    However, there are cases in my program where I would also like the...
  3. Replies
    4
    Views
    608

    Re: Use bitmap on button instead of text

    Ok, I've tried that with



    m_bitmap.LoadBitmap(IDB_BITMAP);
    CButton* pButton = (CButton*)GetDlgItem(IDC_BUTTON1);
    pButton->ModifyStyle(0,BS_BITMAP);
    pButton->SetBitmap((HBITMAP)m_bitmap);
  4. Replies
    4
    Views
    608

    Use bitmap on button instead of text

    Hi everyone,

    I'm trying to create a dialog where some of the buttons have pictures on them, rather than plain text.
    Is it possible to do that?
    I notice that under the button's properties, under...
  5. Replies
    0
    Views
    13,239

    Licensing systems

    Hi everyone,

    My apologies for posting this here, but I can't think of another place to get independent advice.

    I'm looking for a licensing system for my software.
    Something that's easy to use...
  6. Replies
    6
    Views
    1,160

    Re: Ctrl+S no longer recognized

    Ok, great!
    It's working again!
  7. Replies
    6
    Views
    1,160

    Re: Ctrl+S no longer recognized

    Ok, I've figured out the cause of the problem ... but now the solution.

    Because I need to know when my mouse is leaving the screen, in CMyProgramView I'm applying SetCapture() whenever the capture...
  8. Replies
    6
    Views
    1,160

    Re: Ctrl+S no longer recognized

    It's there:



    "Q", ID_SELECT_TOP, VIRTKEY, ALT, NOINVERT
    "S", ID_FILE_SAVE, VIRTKEY, CONTROL, NOINVERT
    "S", ID_DETERMINE_SIZE, ...
  9. Replies
    6
    Views
    1,160

    Ctrl+S no longer recognized

    Hi guys,

    As of recently my software no longer recognizes the Ctrl+S command for saving a file anymore.
    The ::Serialize part of the code is no longer reached.
    Not only that, but not even the...
  10. Replies
    5
    Views
    645

    Re: Drawing semi-transparant pics

    Ok, I've tried the AlphaBlend function, but it unfortunately does not allow me to paint semi-transparent bitmaps with the use of alpha channels. It can only make the whole bitmap transparent, but not...
  11. Replies
    5
    Views
    645

    Re: Drawing semi-transparant pics

    I've just tried creating such a 32 bit bitmap with Adobe Illustrator and so far the alpha channel does not appear to be working for me.
    I'm using pDC->BitBlt(x,y,width,height,memdc,0,0,SRCCOPY) to...
  12. Replies
    5
    Views
    645

    Drawing semi-transparant pics

    Hi guys,

    I need to draw pictures that are both semi-transparant and have shade and are drawn over different (changing) backgrounds.

    Now, I cán paste bitmaps with masks and after that fill in...
  13. Replies
    1
    Views
    652

    Draw text but leave background intact

    Hi guys,

    Is there any way of drawing text on a View using pDC->DrawText(CString,CRect,0) or some other text draw operation that ONLY draws the text but leaves the background?

    Thanks in advance!
  14. Replies
    4
    Views
    440

    Re: Telling if mouse left the screen?

    And ... I just realized I read something about this a couple of years ago.

    SetCapture()
    ReleaseCapture()

    Funny how these things always come to me AFTER I ask.

    Never mind :)
  15. Replies
    4
    Views
    440

    Re: Telling if mouse left the screen?

    I need to know when the mouse pointer has left the window.
    The function ::OnMouseMove only works if the pointer is within it.
    It unfortunately stops working once it's outside the confines of the...
  16. Replies
    4
    Views
    440

    Telling if mouse left the screen?

    Hi guys,

    In a CView, is there some way of telling that the mouse has left the screen?

    Thanks!
  17. Replies
    3
    Views
    603

    Re: Hide a menu item

    Victory!



    CMenu* menu = GetMenu();
    menu->RemoveMenu(0, MF_BYPOSITION);


    in CMainFrame::OnCreate does the trick!
  18. Replies
    3
    Views
    603

    Hide a menu item

    Hi guys,

    Is there some way of not showing a menu item?
    So for example, in the pic below, let's say I want to remove Edit from the menu, without actually deleting it:
    ...
  19. Replies
    3
    Views
    687

    Re: Hide/remove tool bar

    Ah, never mind.
    Found it!
    Sorry for the trouble.
    Whether to draw the toolbar or not can be set in CMainFrame, which contains the toolbar.
    It needs to be set in CMainFrame::OnCreate



    int...
  20. Replies
    3
    Views
    687

    Re: Hide/remove tool bar

    From the .rc file, where it says:

    /////////////////////////////////////////////////////////////////////////////
    //
    // Toolbar
    //

    IDR_MAINFRAME TOOLBAR DISCARDABLE 18, 17
    BEGIN
    BUTTON ...
  21. Replies
    3
    Views
    687

    Hide/remove tool bar

    Hi guys,

    Is there some way of removing the toolbar from your program after you've created it?
    I added it when creating the software long ago but now I'd like to do without it.
    Simply deleting...
  22. Replies
    8
    Views
    952

    Re: Rember directory used by Serialize

    Problem is that I'm not passing such a directory at all.
    Serialize is just the standard function that's used by visual C++, which, after having been added by the wizard looks like:



    void...
  23. Replies
    8
    Views
    952

    Re: Rember directory used by Serialize

    Yes, but how do I, after I've read from the registry what directory was used last time, set the directory to that one?
    And by the same logic, how do I know which directory is currently used so I can...
  24. Replies
    8
    Views
    952

    Rember directory used by Serialize

    Hi guys,

    Is it possible for my software to remember what directory was last used by Serialize?
    Currently it keeps being reset to Documents.
    I'd really like to for example store the directory or...
  25. Replies
    12
    Views
    2,872

    Re: Avoiding flickering in OnDraw

    Here's instructions on how to get flicker free drawing:

    http://www.codeproject.com/KB/GDI/flickerfree.aspx

    Works perfectly fine for me without any issues and is really easy to accomplish.
Results 1 to 25 of 78
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center