Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

volkan878

@volkan878
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting key presses from MFC
    V volkan878

    Hi, Your OnKeyDownMyList() looks like this : void Cxxx::OnKeyDownMyList( NMHDR* pNMHDR, LRESULT* pResult ) { LV_KEYDOWN* pLVKeyDow = ( LV_KEYDOWN* ) pNMHDR; *pResult = 0; } Here you can use the wVKey member of the pLVKeyDow.. Example : void Cxxx::OnKeyDownMyList( NMHDR* pNMHDR, LRESULT* pResult ) { LV_KEYDOWN* pLVKeyDow = ( LV_KEYDOWN* ) pNMHDR; if( pLVKeyDow->wVKey == VK_DELETE ) { // Call the function that deletes the selected item... } *pResult = 0; }

    C / C++ / MFC question c++

  • include file error
    V volkan878

    /#include "hotel_misview.h" If this is how you wrote it in your code too, you better remove the "/" before the #define preprocessor.

    C / C++ / MFC c++ help question csharp database

  • Saving Documents Without Confimation Dialog
    V volkan878

    Thank you all for your responses. I think the most efficient way for to overcome the problem, as DavidCrow suggested, will be overriding CDocument::SaveModified(). After David's post i wondered what MSDN says about SaveModified() and it says : "Called by the framework before a modified document is to be closed. The default implementation of this function displays a message box asking the user whether to save the changes to the document, if any have been made. Override this function if your program requires a different prompting procedure. This is an advanced overridable" So, altough i wished to discover a method like TurnOffTheStupidDialog(), i think i'll go for overriding it. Anyway, thank you again for your replies.

    C / C++ / MFC help question

  • Saving Documents Without Confimation Dialog
    V volkan878

    Hi, I have an MDI project. When some changes occur in a view i call the view's document's SetModifiedFlag() method and when the user attempts to close the child frame, it asks to save the recent changes and that's OK. I also have a Save Project button on the toolbar and when it is pressed it calls CDocTemplate::SaveAllModified() method and saves the modified documents but the problem is it still pops a confirmation dialog. It looks rather silly when the user presses "Save" and it says "Do you want to save?".. Is there a way that i can "silently" save the documents without displaying the confirmation dialog box? Any idea is welcome. Thanks in advance.

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups