Now I figured Out :-D I never thought everybody will compile my post :-D
Thanks & Regards
Now I figured Out :-D I never thought everybody will compile my post :-D
Thanks & Regards
I found one or two new information... i was just sharing... i think everybody took it in different meaning... :(
Thanks & Regards
India never invaded any country in her last 100000 years of history... http://india.gov.in/myindia/facts.php[^]
Thanks & Regards
This one look good.. http://en.wikipedia.org/wiki/ISC_license[^]
Thanks & Regards
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.
thanks.... :-D
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
I'm not sure but i think "language" he mentioned might be "other regional settings"... :^)
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
sorry ?
Thanks & Regards
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
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
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
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 ) ;
use pedtName->SetWindowPos(...) see the first parameter of SetWindowsPos
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
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
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
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
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