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
    2
    Views
    345

    Getting the name of the current savefile

    Well, the title pretty much says it all :)

    When I have loaded a savefile with Serialize, is there some way of telling the name of the currently loaded savefile?

    Thank you in advance!
  2. Replies
    4
    Views
    442

    Re: Prompt "New file" procedure

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

    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...
  4. Replies
    4
    Views
    723

    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);
  5. Replies
    4
    Views
    723

    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...
  6. Replies
    0
    Views
    13,310

    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...
  7. Replies
    6
    Views
    1,226

    Re: Ctrl+S no longer recognized

    Ok, great!
    It's working again!
  8. Replies
    6
    Views
    1,226

    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...
  9. Replies
    6
    Views
    1,226

    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, ...
  10. Replies
    6
    Views
    1,226

    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...
  11. Replies
    5
    Views
    654

    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...
  12. Replies
    5
    Views
    654

    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...
  13. Replies
    5
    Views
    654

    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...
  14. Replies
    1
    Views
    655

    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!
  15. Replies
    4
    Views
    449

    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 :)
  16. Replies
    4
    Views
    449

    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...
  17. Replies
    4
    Views
    449

    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!
  18. Replies
    3
    Views
    610

    Re: Hide a menu item

    Victory!



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


    in CMainFrame::OnCreate does the trick!
  19. Replies
    3
    Views
    610

    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:
    ...
  20. Replies
    3
    Views
    691

    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...
  21. Replies
    3
    Views
    691

    Re: Hide/remove tool bar

    From the .rc file, where it says:

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

    IDR_MAINFRAME TOOLBAR DISCARDABLE 18, 17
    BEGIN
    BUTTON ...
  22. Replies
    3
    Views
    691

    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...
  23. Replies
    8
    Views
    960

    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...
  24. Replies
    8
    Views
    960

    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...
  25. Replies
    8
    Views
    960

    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...
Results 1 to 25 of 79
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