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

vikram attiganal

@vikram attiganal
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SetFocus API in MFC
    V vikram attiganal

    I have the following piece of code which returns the handle to the window which should receive the focus, CWnd* pWndNewFocus = GetNextTabStopWnd(pWndCurrentFocus->;GetSafeHwnd(), iDirection); For setting the focus to the new window, i've written the following code, pWndNewFocus->SetFocus(); Incidentally the window that is set to receive the focus is a CButton. I have an OK button which is default button and a Cancel button. OK button is dithered. So the pWndNewFocus will be my Cancel button. When SetFocus is getting called on that, i'm not able to see the focus [dotten line around the caption] on the button. Could you let me know the reason for this error? The same code when I execute it from VC++ 6.0, the focus is correctly getting set to the button. But when i execute the code in VC++ 10, i'm getting this issue.

    ATL / WTL / STL c++ help json question

  • Text getting truncated
    V vikram attiganal

    I need the text to be displayed on multiple lines, but i need to avoid text truncation.

    C / C++ / MFC help

  • Text getting truncated
    V vikram attiganal

    Hello, I am finding an issue where in I have a Text which is longer than a single line with no spaces. This text is not displayed completely in the tool tip. It gets truncated. I make use of CDC for the tooltip display rectangle, CDC* pDC = GetDC(); CRect rect(0, 0, 0, 0); CString sComment = "this is a comment bigggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg comment 2 2 2"; pDC->DrawText(sComment, &rect, DT_CALCRECT | DT_LEFT | DT_WORDBREAK | DT_NOPREFIX | DT_TOP); int iheight = rect.Height(); // It wont return the correct rectangle height //Output is this is a comment biggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg Can anyone tell me what the issue is. Thank you, ~ Vikram

    C / C++ / MFC help

  • Please help, its very urgent ( retrieving datetime )
    V vikram attiganal

    Use the Format() method to format it in whatever way you want. Like Format("%Y-%m-%d") formats it to Year, Month and Day format. Format method is member of CTime class.

    Database c++ database help question

  • need help!!!!
    V vikram attiganal

    Try Desc "tablename" query. Get the recordcount from the recordset. The count you get is the column count.

    C / C++ / MFC database help tutorial question

  • Finding a file
    V vikram attiganal

    /* Check for existence */ if( (_access( "filename, with full path", 0 )) != -1 ) { //file exists } This will do the trick for you

    C / C++ / MFC question

  • CDaodatabase
    V vikram attiganal

    CDaoDatabase constructs a CDaoDatabase object. The path to the database will have to be provided and connection can be opened with Open() method.

    C / C++ / MFC question database

  • How to Run only One Instance of my Application at a time
    V vikram attiganal

    //---------------------------------------------------------------------------------------------------// //check if the application is already running... bool bAlreadyRunning; HANDLE hMutexOneInstance = CreateMutex( NULL, TRUE, "Pointer to a null-terminated string specifying the name of the mutex object."); bAlreadyRunning = ( GetLastError() == ERROR_ALREADY_EXISTS ); if ( hMutexOneInstance ) { ReleaseMutex( hMutexOneInstance ); } if ( bAlreadyRunning ) { //AfxMessageBox("Application is already running"); return FALSE; } //---------------------------------------------------------------------------------------------------// Include this code in the InitInstance of your app. This will do the trick for you.

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