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

nitin3

@nitin3
About
Posts
144
Topics
77
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Few fact about our country..
    N nitin3

    Now I figured Out :-D I never thought everybody will compile my post :-D

    Thanks & Regards

    The Lounge php

  • Few fact about our country..
    N nitin3

    I found one or two new information... i was just sharing... i think everybody took it in different meaning... :(

    Thanks & Regards

    The Lounge php

  • Few fact about our country..
    N nitin3

    India never invaded any country in her last 100000 years of history... http://india.gov.in/myindia/facts.php[^]

    Thanks & Regards

    The Lounge php

  • License for closed source softwares?
    N nitin3

    This one look good.. http://en.wikipedia.org/wiki/ISC_license[^]

    Thanks & Regards

    The Lounge question

  • License for closed source softwares?
    N nitin3

    Is there any commonly used license for closed source softwares? Can any one suggest one for me for a software which is free but not open source.

    The Lounge question

  • Extended Keys in WM_KEYDOWN and WM_KEYUP ?
    N nitin3

    thanks.... :-D

    C / C++ / MFC help question

  • Extended Keys in WM_KEYDOWN and WM_KEYUP ?
    N nitin3

    in WM_KEYDOWN and WM_KEYUP messages the lparam flag 24 says the key is extended key or not. What are extended keys ? i need complete list of extended keys.. please help..

    Thanks & Regards

    C / C++ / MFC help question

  • Minimizing Windows
    N nitin3

    I'm not sure but i think "language" he mentioned might be "other regional settings"... :^)

    C / C++ / MFC linux question

  • Deskband (XP) Problem..
    N nitin3

    Hi, I'm trying to create a deskband (windows xp). The class which implement IDeskBand is CBand. I've created some brush in the constructor of this class. And destroyed in destructor. right click taskbar->toolbars-> select MyBand, now my deskband is visible. then right click taskbar->toolbars->MyBand, now my deskband is gone. But the gdi items are still in memory ? It seems the destructor is not called. If repeat show, hide deskband, the gdi object count increases with every time. I've created it as specified in the following url. http://msdn.microsoft.com/en-us/library/cc144099(v=vs.85).aspx

    CBand::CBand()
    {
    //ALWAYS SHOWS
    MessageBox(0, "Construct", 0,0) ;
    m_lRef = 1 ;
    //create obejcts...
    }
    CBand::~CBand()
    {
    //NEVER SHOWN
    MessageBox(0, "Destruct", 0,0) ;
    //delete objects
    }

    DWORD __stdcall CBand::AddRef()
    {
    return InterlockedIncrement(&m_lRef) ;
    }
    DWORD __stdcall CBand::Release()
    {
    if( InterlockedDecrement(&m_lRef) == 0 )
    {
    delete this ;
    }
    return m_lRef ;
    }
    HRESULT __stdcall CBand::QueryInterface( REFIID riid , void** ppvObj )
    {
    *ppvObj = NULL;

    if(IsEqualIID(riid, IID\_IUnknown))
    {
    	\*ppvObj = this;
    }
    .
    .
    .
    .
    
    if(\*ppvObj)
    {
    	(\*(LPUNKNOWN\*)ppvObj)->AddRef();
    	return S\_OK;
    }
    
    return E\_NOINTERFACE;
    

    }

    HRESULT __stdcall ShellFactory::CreateInstance(IUnknown* pUnknownOuter , const IID& iid , void** ppv )
    {
    if( pUnknownOuter != NULL )
    {
    return ResultFromScode( CLASS_E_NOAGGREGATION ) ;
    }

    if( IsEqualCLSID(m\_clsid , CLSID\_MyBand))
    {
    	CBand \* pObj = new CBand() ;
    	if( pObj == NULL )
    	{
    		return E\_OUTOFMEMORY;
    	}
    	HRESULT hRes = pObj->QueryInterface( iid , ppv ) ;	
    	if(FAILED(hRes) )
    	{
    		pObj->Release() ;
    	}
    	return hRes;
    }
    return S\_FALSE ;
    

    }

    Thanks & Regards

    C / C++ / MFC visual-studio com graphics performance help

  • Storing Binary Tree Data
    N nitin3

    sorry ?

    Thanks & Regards

    Database database data-structures question

  • Storing Binary Tree Data
    N nitin3

    Hi, I want to make a database for an mlm project (binary tree). I'm confused to choose data storing model. I've got two option "adjacency list model" and "Modified Preorder Tree Traversal". Which one is better for this kind of project ?:confused: My project may contain a large amount of records. Please suggest better model for my project.

    Thanks & Regards

    Database database data-structures question

  • .bmp file data to HBITMAP, How ?
    N nitin3

    Hi, I've a bitmap file binary data in variable (File contents read from a .bmp file). How can i convert it to an HBITMAP? I know One way is to save the contents in to a file and use LoadImage() method. Is there any other way to do the same in memory ?

    Thanks & Regards

    C / C++ / MFC question graphics performance

  • Simulate Keypress on a window
    N nitin3

    hi, i want to simulate a key press on a window. eg: ive handle to the notepad window and i want perform "ctrl+s" on notepad. how to do that, please help me

    Thanks & Regards

    C / C++ / MFC help tutorial

  • how to force paint a view in MFC.
    N nitin3

    ThisIsMeRon wrote:

    Invalidate does not work for me.

    i dont know what his problem is, but i have similar issue with InvalidateRect when when i was creating a control in win32, i tried RedrawWindow also but not worked. I solved issue by using the following code. HWND hParent = GetParent( hChildControl ) ; InvalidateRect( hParent , &rChildRect , TRUE ) ;

    C / C++ / MFC c++ tutorial question

  • How to Set Tab order for dynamically created controls like CButton,CEdit
    N nitin3

    use pedtName->SetWindowPos(...) see the first parameter of SetWindowsPos

    C / C++ / MFC help tutorial question

  • User Account Image
    N nitin3

    hi all, plz tell me how i can get the picture represeting the user account( which shows in logon screen and startmenu ) in windows xp.

    Thanks & Regards

    C / C++ / MFC

  • Copy Byte information to structure
    N nitin3

    i have a structure and BYTE array typedef struct _my_struct { DWORD dwValue ; BYTE yValue1 ; BYTE yValue2 ; WORD wValue1 ; BYTE yValue3 ; WORD wValue2 ; BYTE yValue4 ; }mystruct ; BYTE Buf[10] = {"ab--c--d"} ; i need to copy a to yValue1, b to yValue2, -- to wValue1, c to yValue3, -- to wValue2, and d to yValue1. i tried the following code but its not working mystruct st ; memcpy( &st.yValue1 , Buf , 6 ) ; is any way to do that ?

    Thanks & Regards

    C / C++ / MFC data-structures question

  • ListView-CustomDraw
    N nitin3

    This code is taken from "http://www.codeproject.com/KB/list/lvcustomdraw.aspx" an MFC project. i made changes in the code to suitable for a Win32 project. But this code is not working. i am able to get CDDS_PREPAINT but not ITEMPREPAINT or (CDDS_ITEMPREPAINT | CDDS_SUBITEM).

    if( ((NMHDR*)lParam)->code == NM_CUSTOMDRAW )
    {
    pLVCD = reinterpret_cast<nmlvcustomdraw*>( lParam );

    if ( CDDS\_PREPAINT == pLVCD->nmcd.dwDrawStage )
    {
    	return CDRF\_NOTIFYITEMDRAW;
    }
    else if ( CDDS\_ITEMPREPAINT == pLVCD->nmcd.dwDrawStage )
    {
    	return CDRF\_NOTIFYSUBITEMDRAW;
    }
    else if ( (CDDS\_ITEMPREPAINT | CDDS\_SUBITEM) == pLVCD->nmcd.dwDrawStage )
    {
    	COLORREF crText, crBkgnd;
    	
    	if ( 0 == pLVCD->iSubItem )
    	{
    		crText = RGB(255,0,0);
    		crBkgnd = RGB(128,128,255);
    	}
    	else if ( 1 == pLVCD->iSubItem )
    	{
    		crText = RGB(0,255,0);
    		crBkgnd = RGB(255,0,0);
    	}
    	else
    	{
    		crText = RGB(128,128,255);
    		crBkgnd = RGB(0,0,0);
    	}
    
    	pLVCD->clrText = crText;
    	pLVCD->clrTextBk = crBkgnd;
    
    return CDRF\_DODEFAULT;
    }
    

    }

    Thanks & Regards

    C / C++ / MFC c++ com

  • listView
    N nitin3

    i used ListView_SortItemsEx Stpes:- state of lv before sorting col1 col2 col3 .. coln --------------------------------------------------------------- Notepad Running Calculator Running 1) the user click on first column then it will become col1 col2 col3 .. coln --------------------------------------------------------------- Calculator Running Notepad Running 2) after a second the list view get refreshed by calling EnumWindows. the code to add item to the listview is written in lpWndEnumProc function. if i got the handle to the window calculator at first , i dont know what will be the index of calculater this time, if this is not a sorted list i can insert it at index 0.

    Thanks & Regards

    C / C++ / MFC algorithms help tutorial announcement

  • listView
    N nitin3

    hi all,, i am developing an application that list running windows in a list view as in taskmanager, the items in the listview can be sorted on clicking a column. my problem is how to update the values in listview after sorting the items.

    Thanks & Regards

    C / C++ / MFC algorithms help tutorial announcement
  • Login

  • Don't have an account? Register

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