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
N

Nibu babu thomas

@Nibu babu thomas
About
Posts
1.7k
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Ownerdarw Combobox
    N Nibu babu thomas

    Since you've given CBS_OWNERDRAWVARIABLE as combo style, you need override MeasureItem.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC help

  • Ownerdarw Combobox
    N Nibu babu thomas

    Please show us the ASSERT code.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC help

  • Ownerdarw Combobox
    N Nibu babu thomas

    You should override DrawItem function. Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC help

  • Copying a dialog resource between projects with MSDEV 2008
    N Nibu babu thomas

    You can open the other resource in the same devenv and then copy it. Then copy in necessary contents.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC tutorial learning

  • Simple Unresolved External Symbol error
    N Nibu babu thomas

    Have you added StringParser.cpp to your project?

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

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

  • How to avoid value repetition in the CListCtrl
    N Nibu babu thomas

    Murugan k wrote:

    How can i call unique before inserting value to list.

    You can use unique only if you have a std::list/vector/etc with you which instead you are inserting to a list control. But since you are directly inserting to the list control use CListCtrl::FindItem, if found don't insert. I guess this will help?

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC tutorial help

  • How to avoid value repetition in the CListCtrl
    N Nibu babu thomas

    You can iterate through the list and remove duplicate ones no? Also there are useful stl algorithms like unique which works on a sorted list, so before inserting you can call unique on the list.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC tutorial help

  • How to get file version of an MFC application?
    N Nibu babu thomas

    Can you check here? http://www.eggheadcafe.com/forumarchives/windowsceembedded/Nov2005/post24225478.asp[^]

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC c++ tutorial question announcement learning

  • [Message Deleted]
    N Nibu babu thomas

    If you open the dll as a "resource" in msdev or devenv then you can edit copyright information.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC

  • How to get file version of an MFC application?
    N Nibu babu thomas

    kapardhi wrote:

    Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function??

    User GetFileVersionInfo function. For a demo have a look at the Process viewer[^] application.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC c++ tutorial question announcement learning

  • CWaitCursor changes back to normal cursor on mouse move event
    N Nibu babu thomas

    ptr_Electron wrote:

    CWaitCursor changes back to normal cursor on mouse move event, before the end of the function

    There is an option in to restore the cursor back, use CWaitCursor::Restore. Also check from where the cursor is being reset to normal cursor.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC

  • send message to window [modified]
    N Nibu babu thomas

    trioum wrote:

    how can we send a ctrl+V message to window .I have handlw to that window

    You can use WM_PASTE, if it's an edit control, directly and your intention is to paste some text from clipboard. Also you can try SendInput[^].

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC

  • String check
    N Nibu babu thomas

    pandit84 wrote:

    How to check whether a string does not contain any data other that 'A' - 'Z' or '0' - '9'

    You can use _istalnum, _isalnum function...

    bool IsValidAlNumStr( LPCTSTR lpctszStr )
    {
    while( *lpctszStr )
    {
    if( !_istalnum(*lpctszStr ))
    return false;

     ++lpctszStr;
    

    }

    return true;
    }

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC json tutorial

  • GetScrollBarCtrl( ) alternative api in win32.
    N Nibu babu thomas

    zakkas2483 wrote:

    I wanted to know,that is Edit control's scroll bar enabled from win32 code?

    bool IsVScrollEnabled( HWND hEdit ) { return (( ::GetWindowLong(hEdit, GWL_STYLE) & WS_VSCROLL ) == WS_VSCROLL ); } Same for hscroll, hope this helps?

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC json question

  • The strange behaviour of the text.
    N Nibu babu thomas

    daavena wrote:

    But if I move with a window(which is currently open/active) the text will get bold. Even if I click on the desktop the text on the desktop will get bold. But if I hit F5 and the desktop is active - the text is normal. Can you give me a hind, what I am doing wrong?

    This happens if you have a wrong font selected into your dc (the one used for hdc). Also make sure the font object has a valid life time.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC graphics question

  • how to attach horizontal scroll bar to combo box control
    N Nibu babu thomas

    saksp wrote:

    I have inserted a combo-box control in my project. In that control vertical scroll bar is present. I want horizontal scroll bar also. how to attach horizontal scroll bar to control

    First edit .rc file to add WS_HSCROLL to combo box style codes since dialog does not support this. Then use this function, I've for demo purpose given 600, you need to use GetTextExtent function to get the real extent, look up MSDN for SetHorizontalExtent sample code...

    void CDialoTestDlg::AddHScroll()
    {
    CComboBox* pCmb = (CComboBox*)GetDlgItem(IDC_COMBO_HORZ_EXTENT);
    ASSERT( pCmb );

    pCmb->SendMessage( CB_SETHORIZONTALEXTENT, 600, 0 );
    }

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC tutorial

  • how to add animation CWaitCursor
    N Nibu babu thomas

    ptr_Electron wrote:

    Yes true, But I dont want the normal hour glass, but instead I need some other animation, so...

    If you've globally set an animated wait cursor then I guess that will be displayed instead of the hour glass. Also you can try LoadCursorFromFile.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC c++ tutorial

  • ANSI to UTF-8
    N Nibu babu thomas

    Souldrift wrote:

    char* text = new char[1024]; WCHAR w[1024]={0}; int erg=0;

    Try to avoid using numbers directly or hard coding instead store in a constant.

    const int SIZE = 1024; // Bytes
    char* text = new char[SIZE];
    WCHAR w[SIZE]={0};

    erg=MultiByteToWideChar(CP_ACP, 0, text, -1, w, SIZE); // ANSI to UNICODE
    erg=WideCharToMultiByte(CP_UTF8, 0, w, -1, text, SIZE, 0, 0); // UNICODE to UTF-8

    So when you change SIZE, this code still keeps working.

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC question

  • Page turn effect for the dialog
    N Nibu babu thomas

    vickyoncodeguru wrote:

    Can we do this in MFC?

    Try this -> Animated Dialog Windows[^]

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC c++ question

  • string::find() function for case insensitive search
    N Nibu babu thomas

    himangshuS wrote:

    if(myword.find("Tag")!= string::npos)

    Like this...

    if( StrStrI( &Myword[0], "Tag" ))
    {
    MessageBox( "Found \"Tag\" in Myword :)" );
    }

    Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

    C / C++ / MFC help algorithms learning
  • Login

  • Don't have an account? Register

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