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
M

Mike Melnikov

@Mike Melnikov
About
Posts
17
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How MSN detects network connection
    M Mike Melnikov

    i wonder, how MSN detects network connection, not internet but network connection, after that it tries to login user. interesting fact is that i specified wrong DNS and gateway, but MSN detected local area network and tried to connect to its server. so may be it use some system notifications? what do you think? really it can help me a lot. thank your, Mike.

    C / C++ / MFC sysadmin help question discussion

  • Manage SwapFile
    M Mike Melnikov

    Does anybody know how to manage SwapFile: change its size, find used space in it, etc. just give me idea where to look for such functions....

    C / C++ / MFC tutorial

  • Rank Articles by their comments count
    M Mike Melnikov

    I think that page views - can show instersting in the subject of article. rating,votes,popularity - shows better how reader like "the body" of article IMHO. comments - show how many people try to use/modify it,and represent "community" of the article. so count of comments can show us such communities

    Site Bugs / Suggestions

  • HELP. . DLLs?????
    M Mike Melnikov

    Hi Use Win32 Dynamic-Link Library wizard with option "a dll that exports some symbols" it makes some defines for you like these: #ifdef MY_EXPORTS #define MY_API __declspec(dllexport) #else #define MY_API __declspec(dllimport) #endif modify them a little: #ifdef MY_EXPORTS #define MY_API __declspec(dllexport) #elif defined(_STATIC_MY_LIB_) #define MY_API #else #define MY_API __declspec(dllimport) #endif and use MY_API before your classes: class MY_API CMyTestClass {}; now your should define in dll-project (wizard made it for you) MY_EXPORTS don't define any (MY_EXPORTS|_STATIC_MY_LIB_) in projects that use your dll you can make lib-project using same source files just define _STATIC_MY_LIB_ in project settings. ZMike.

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

  • How to Change the Caption of a CPropertyPage at run time ???
    M Mike Melnikov

    Hi you can use SetTitle() function - before,after or in OnInitDialog check also that you haven't define your own WM_USER + 111 message Mike

    C / C++ / MFC help tutorial question

  • RichTextCtrl
    M Mike Melnikov

    Hi 1. catch your enterbutton in BOOL CYourDlg::OnApply() { // do something with m_RichText; return FALSE; } also your can use OnChar(...) fiunction 2. a sample m_RichText.SetSel(0,-1); CHARFORMAT cf; cf.dwMask = CFM_SIZE|CFM_COLOR|CFM_UNDERLINE; cf.dwEffects = CFE_UNDERLINE; cf.crTextColor = RGB( 0, 0,255); cf.yHeight = 120; m_RichText.SetWordCharFormat(cf); 3. the simplest way try { ... m_RichText.LoadFile(..); } catch(...) { } Mike.

    C / C++ / MFC help tutorial question

  • Determining VC++ Service Pack Number
    M Mike Melnikov

    it is enough? [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\ServicePacks] "latest"=dword:00000004 Mike.

    C / C++ / MFC c++ windows-admin algorithms json question

  • Activate window in Win2000
    M Mike Melnikov

    thank you for response. I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)

    C / C++ / MFC help question

  • Activate window in Win2000
    M Mike Melnikov

    thank you for response. GetLastError() tell me that all OK. really problem doesn't caused by DrawAnimatedRects() I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)

    C / C++ / MFC help question

  • Activate window in Win2000
    M Mike Melnikov

    I want to maximise window from SystemTray. after calling DrawAnimatedRects for my window I tried to use SetActiveWindow(); SetForegroundWindow(); and even ModifyStyleEx(0,WS_EX_TOPMOST) and it works in WinNT but not Win2000 can anybody help me? Mike.:confused:

    C / C++ / MFC help question

  • C++ stuff you _never_ use?
    M Mike Melnikov

    Hi I am using virtual base classes a lot. This is simple example: class AUnknown // this is base "interface" class { Object* m_owner; // pointer to base "object" class }; class IMove : virtual public AUnknown { void move() = 0; }; class IName : virtual public AUnknown { string getName() = 0; void setName(string) = 0; }; // class that implements two interfaces and has only one //instance of m_owner; class CanMoveHasName : public IMove, public IName { }; Mike

    The Lounge c++ com question

  • Sorting data in CListCtrl columns...
    M Mike Melnikov

    Hi, try to look throw this functions void CMListCtrl::DoSort() { SortItems((PFNLVCOMPARE)MySort,(LPARAM)this); } BEGIN_MESSAGE_MAP(CMListCtrl, CListCtrl) ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnColumnclick) END_MESSAGE_MAP() void CMListCtrl::OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult) { NMLISTVIEW* pNMListView = (NMLISTVIEW*)pNMHDR; int iColumn = pNMListView->iSubItem + 1; int iColumnLast = m_iSortedCol; if (iColumn == abs(iColumnLast)) { iColumn = -iColumnLast; } m_iSortedCol = iColumn; DoSort(); } /* The comparison function must return a negative value if the first item should precede the second, a positive value if the first item should follow the second, or zero if the two items are equivalent.*/ static int CALLBACK CMListCtrl::MySort(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort) { CMListCtrl* _this = (CMListCtrl*)lParamSort; CFileItem* pFIOne = (CFileItem *)lParam1; // was added using Insert CFileItem* pFITwo = (CFileItem *)lParam2; // was added using Insert return 0; }

    C / C++ / MFC algorithms help

  • Need Help in add-in
    M Mike Melnikov

    Standart macros window allow you to open any file at any line. As I understand you want something more. I think you can spend several days and write code that subclass macros window, then catch doubleclick, then find selected line, then... I think you should make your own window with your design. And in that window you can do anything you like. Mike

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

  • Need Help in add-in
    M Mike Melnikov

    >> In the add-in I write to the 'macro' tab of the output >> window If YOU are writing to 'macro' tab I think you can analyze that text immediately :) Or you want to get something else? Mike.

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

  • visual studio
    M Mike Melnikov

    there is no any standart command in VS for it. but you can look for add-ins here http://codeproject.com/macro/

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

  • add-in problem...
    M Mike Melnikov

    Can you give a url to that add-in?

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

  • AutoBld Add-In
    M Mike Melnikov

    Hi I am finding a way to read text from that windows too. But I wrote my own add-in that may be resolve your problem visit http://zmanagers.chat.ru and look how I send build output to "macros" window Zmike

    C / C++ / MFC c++ com tools help tutorial
  • Login

  • Don't have an account? Register

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