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
D

dart13

@dart13
About
Posts
42
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • problem with building help
    D dart13

    Thanks for help "on help";). I couldn't find hpj file on the second computer, but I found it in the folder I copied the project from and edited it.

    C / C++ / MFC help csharp c++ visual-studio question

  • problem with building help
    D dart13

    I have copied SDI app project from one computer to another. Visual studio on the first is installed on d: partition, so when I try to build app on second I get this error: MySDIApp.hpj HC5011: Error: MySDIApp.hpj : Cannot open the file "d:\Microsoft Visual Studio\VC98\MFC\include \afxhelp.hm." Which setting should I change to fix this problem?

    C / C++ / MFC help csharp c++ visual-studio question

  • Navigating through CForimView controls
    D dart13

    I just want to move focus from one button to another, so the desired button can be activated by pressing ENTER. It is possible to move focus with TAB key as well as with arrow keys, but focus goes from one button to the other as it was set in Layout -> Tab Order. What I want to accomplish is to move focus in one of four directions using arrow keys, but I am not sure what's the best way to implement this behaviour.

    C / C++ / MFC tutorial question

  • Navigating through CForimView controls
    D dart13

    How to implement movement between button controls placed on a CFormView with arrow keys? Buttons are positioned like chessboard squares - so when the arrow key for left is pressed the focus should move to the button placed left and so on. Should SetFocus() be overriden?

    C / C++ / MFC tutorial question

  • Changing colors in VS6 image editor
    D dart13

    I created a bitmap image with image editor in VS6 and attached to a CButton. However, there is a problem with showing colors accurately. I changed light gray - RGB(192,192,192) that was in original palette with RGB(208,208,200) using Adjust Colors... in Image menu, but when the app starts the bitmap's color is the old light gray. What should I do to fix this problem?

    C / C++ / MFC help graphics question

  • CStatic window text
    D dart13

    Text in a CStatic control, which is on CFormView (SDI app), gets erased after CPropertySheet dialog ends. Dialog is called from the menu. Does anyone knows what's the reason for such behaviour and how to prevent it?

    C / C++ / MFC tutorial question

  • Closing SDI application
    D dart13

    Thank you.

    C / C++ / MFC question

  • Closing SDI application
    D dart13

    What code should I put in a handler for CButton in order to close SDI application? I tried with PostMessage(WM_QUIT) , but CDocument::OnCloseDocument() doesn't get called in this case. CButton is created in a CFormView class.

    C / C++ / MFC question

  • Capture Keyboard Input
    D dart13

    The solution Andy Q gave you should work with tab and enter keys. I used a similar technique to trap Enter key in a form view. BOOL CMyFormView::PreTranslateMessage(MSG* pMsg) { // keyboard input for 'enter' and 'esc' if(pMsg->message==WM_KEYDOWN) { if(pMsg->wParam == 0x0d) // if Enter pressed { //your handler return TRUE; } else if(pMsg->wParam == 0x1b) // if Esc pressed { //... return TRUE; } } return CFormView::PreTranslateMessage(pMsg); }

    C / C++ / MFC tutorial

  • problem with inline keyword
    D dart13

    Thanks for help. The inline function was in a CPP file. Does this rule of putting inline functions in a header file applies only to VC++ or it is a part of standard?

    C / C++ / MFC help question

  • Please help me. how to attach a dialog to a view?
    D dart13

    Just use CFormView class.

    C / C++ / MFC help tutorial question

  • problem with inline keyword
    D dart13

    The function is a member function of derived CDocument class, and I use it to access protected member variable which I created. If it is used within CMyDoc then it's ok, but when I call it from CMyView then the linker reports that error. Here is a full text of the error msg: MyVew.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CMyDoc::IsButtonPressed(void)const " (?IsButtonPressed@CMyDoc@@QBE_NXZ)

    C / C++ / MFC help question

  • Design issue with SDI app
    D dart13

    Thanks for your input. I'll probably opt for registry.

    C / C++ / MFC help design tutorial question

  • problem with inline keyword
    D dart13

    I have a function in CDocument file which I declared inline. When I call it from CView class, the linker reports LNK2001 error. If it's not inline then it works fine. Does anyone know what might be the problem?

    C / C++ / MFC help question

  • Mapping array of CButtons
    D dart13

    thanx for your help. I appreciate it.

    C / C++ / MFC data-structures tutorial question

  • Mapping array of CButtons
    D dart13

    Thanks for your help, but shoudn't DoDataExchange() be in some way involved in this? I have an array CButton btns[10] that need to be 'connected' to 10 buttons on a dialog form. If I use ClassWizard (Member Variables) I can map each button with a single CButton variable, but it doesn't allow me to use btns[0], for example, as a name of a variable.

    C / C++ / MFC data-structures tutorial question

  • Mapping array of CButtons
    D dart13

    It being CMap. Sorry for misunderstanding.

    C / C++ / MFC data-structures tutorial question

  • Mapping array of CButtons
    D dart13

    I looked in MSDN, but I'm not quite sure if I know how to use it in this case.

    C / C++ / MFC data-structures tutorial question

  • Mapping array of CButtons
    D dart13

    How to map array of CButtons to button resources on Dialog form?

    C / C++ / MFC data-structures tutorial question

  • closing dialog by clicking on it
    D dart13

    You can do it like this: void CAboutDlg::OnRButtonDown(UINT nFlags, CPoint point) { SendMessage(WM_CLOSE); CDialog::OnRButtonDown(nFlags, point); } and then in OnClose(), you can do the cleanup. OnClose() is called after WM_CLOSE is processed, I guess. So it doesn't actually close the window.

    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