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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
I

Igor Mihailov

@Igor Mihailov
About
Posts
12
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Menu Bitmaps from Minimal Source Code in Dialog
    I Igor Mihailov

    But how?

    C / C++ / MFC help tutorial c++ com graphics

  • Menu Bitmaps from Minimal Source Code in Dialog
    I Igor Mihailov

    Nope, the class must be defined like this: class CModelessMain : public BitmapMenu<CModelessDialog> This is the author's idea.

    C / C++ / MFC help tutorial c++ com graphics

  • Menu Bitmaps from Minimal Source Code in Dialog
    I Igor Mihailov

    Hello, could you please help me? Here's an article: http://www.codeproject.com/menu/bmpmenu.asp The last comment is about using bitmap menu in dialog: "I will use the MSDN example project dlgcbr32 to demonstrate this. Dlgcbr32 demonstrates how to add control bars to a dialog based application. Build dlgcbr32 and then follow these steps (the first 5 steps are essentially the same steps given in the original article): 1. Add these files to your project: BitmapMenu.cpp, BitmapMenu.h, and winuser2.h 2. In Mdlsmain.h add this line: #include "BitmapMenu.h" 3. In Mdlsmain.h inherit your modeless dialog from BitmapMenu: class CModelessMain : public BitmapMenu 4. In Mdlsmain.cpp add two message handlers (the third message handler ON_WM_INITMENUPOPUP() is already there): ON_WM_MEASUREITEM() ON_WM_DRAWITEM() 5. In Mdlsmain.cpp at the end of the CModelessMain::OnInitDialog() function add the tool bar: AddToolBar(&m_toolBar); 6. At the beginning of BitmapMenu.cpp add this line: #include "Modeless.h" 7. At the end of BitmapMenu.cpp add this line: template BitmapMenu; 8. In Mdlsmain.cpp at the beginning of the function CModelessMain::OnInitMenuPopup() add this line: BitmapMenu::OnInitMenuPopup(pPopupMenu, nIndex, bSysMenu); 9. At the top of BitmapMenu.h add this line: #include " The only thing that can't be compiled after perfoming all steps to use bitmap menu in dialog is this line: CColorLBTestDlg::CColorLBTestDlg(CWnd* pParent /*=NULL*/):CDialog(CColorLBTestDlg::IDD, pParent) The error i get: error C2614: 'CColorLBTestDlg' : illegal member initialization: 'CDialog' is not a base or member Thanks in advance!

    C / C++ / MFC help tutorial c++ com graphics

  • [Message Deleted]
    I Igor Mihailov

    Thanks a lot! That's really fantastic.

    ATL / WTL / STL

  • [Message Deleted]
    I Igor Mihailov

    [Message Deleted]

    ATL / WTL / STL

  • LNK2001: unresolved external symbol
    I Igor Mihailov

    Compilation of file1.cpp and file2.cpp - success. Linking causes error LNK2001. What are possible reesons? //file1.h void dosmth(); //file1.cpp #include "file1.h" void dosmth() { //dosmth } //file2.cpp include "file1.h" void main() { dosmth(); } XPIS

    C / C++ / MFC c++ help question

  • Flat button without MFC
    I Igor Mihailov

    Hello. Can anybody give me the source of the flat button? Only Win32Api, please. Thanks.

    C / C++ / MFC c++ question

  • char str[256] AND char *str = new char(256)
    I Igor Mihailov

    Hi, people. Can sommebody explain me the difference between 1. char str[256] 2. char *str = new char(256) I thought it's equevalent, but my program works good with 1st and fails sometimes when I use the second variant. Unfortunately I can't watch when it happens. Help me

    C / C++ / MFC help

  • SetWindowText problem - please look at that
    I Igor Mihailov

    \n\r doesn't work - now there are two squares instead of CR LF. Multiline is certainly checked XPiS

    C / C++ / MFC help tutorial question

  • Replacing a substring using a string class
    I Igor Mihailov

    Can anybody help me in replacing a substring: string s1 = "Here goes string - sample string"; string s2; ... s1.replace... ... ... s2 must be "Here goes solution - sample solution" XPiS

    C / C++ / MFC help

  • CALLBACK aka __stdcall
    I Igor Mihailov

    Thanks a lot. I'll try my best.

    C / C++ / MFC c++ json help question

  • CALLBACK aka __stdcall
    I Igor Mihailov

    Hello all. Help me please: I need to make a callback function as a member of my class (Win32 API, no MFC). Is it possible? Thanks.

    C / C++ / MFC c++ json 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