|
How to edit subitems in a list view , i tried LVS_EDITLABELS but it allows to edit first column only.
Thanks & Regards
|
|
|
|
|
Have you tried SetItemText ?
|
|
|
|
|
There is not provision in list control for doing this. U have to create your own edit control and manage it. You can find many samples in code project itself. Search.....
|
|
|
|
|
Hi All,
I have one requirement wherein the user does not want to install Winzip and use WinXP's in build de/compression utlity. Is there any way to call "Extract ALL" from Command line.Ealier i wan executing a simple winzip command from command line to achieve the same.
Thanks in Advance,
Abhi Lahare
|
|
|
|
|
type zip -? in command line to find out the commands available
|
|
|
|
|
i have a combo box which contains interger values and i have couple of files in my application. i have mapped this combo box to integer. i am getting the index of the value and i am using cstring to convert it to the original value. for ex. there are 2 values in my combo box. 100 and 200. if i select 100 i get the index as 0. and the CString variable will return the value(100). now my requirement is i need to pass the value(100) to another file. how do i do it?
|
|
|
|
|
You can write get/set function and then using class pointer access those values in another file.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
is there any other way other than that?
|
|
|
|
|
If your classes support parent/child relationship then you can use GetParent() from your child class to access the members of the parent.
(P.S. - Is there some problem in getting the values as per my previous suggestion.)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
there is no problem in doing so. but thought the other way where u make an instance of a class and pass the value thru that.
|
|
|
|
|
as a constructor parameter for instance...
|
|
|
|
|
Hi Experts,
How can I enumerate of all Bits of a Byte variable.
Thanx in advance.
|
|
|
|
|
try this
byte byValue = 12;<br />
byte byExtractor = 128;
for( int nIdx =0; nIdx < 8; nIdx ++ )<br />
{<br />
byte byBit = (byExtractor == (byValue&byExtractor));<br />
byExtractor = byExtractor>>1;<br />
std::cout<< "bit at "<<nIdx<<"th position is "<< byBit; <br />
}
|
|
|
|
|
|
Did you mean something like this?
BYTE b = ???;
for( int i = 0; i < 8; i++ )
{
cout << (( b >> i ) & 0x1 ) << endl;
}
|
|
|
|
|
i want to use "Access" database to store my data, i just only know plain c(or Win32API), i can't use c++(or MFC), so how to read and write "Access" database files with C in Windows Programming(not MFC,C++)?
|
|
|
|
|
As far as I know ODBC still works and has a usable C interface. It's a whole technology wrapped in some Dlls so you'll need to look it up and try some examples but essentially it lets you open a database using a vendor supplied driver and run SQL queries against the database to form recordsets of results and then iterate over those result sets operating on individual rows. It's like a primitive version of OLE/DB without the need for COM.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I have a dll built from spidermonkey source. It also seems to build manifest file on winXP. Now my question is how do I load it in my client program. Apparently my winXP box is running .NET 2.0, and they have made it a requirement to load a dll ONLY through the manifest file dependency specification. Earlier it used to be as easy as dropping it in system32 folder, but now with .NET side-by-side assembly structure, things have changed
Can anybody give me pointers as to how do I go about using that DLL in a C program (win32 console application) ?
|
|
|
|
|
|
I need to have a popup menu on the grid, but it doesn't look like it should. The main menu's text isn't shown, only a small blank menu, on the other hand the submenus show up and work properly if I position the cursor above the blank menu. Any idea? WinXP, VC 6.00 SP6
void CGridCtrlDemoDlg::OnGridRClick(NMHDR *pNotifyStruct, LRESULT* /*pResult*/)
{
NM_GRIDVIEW* pItem = (NM_GRIDVIEW*) pNotifyStruct;
Trace(_T("Right button click on row %d, col %d\n"), pItem->iRow, pItem->iColumn);
// To test popup menu
CPoint mypoint;
GetCursorPos(&mypoint);
pM = new CMenu();
pM->LoadMenu(IDR_POPUP);
pM->TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON, mypoint.x,mypoint.y, AfxGetMainWnd());
}
|
|
|
|
|
you have to get submenu for show
like this:
pM = new CMenu();
pM->LoadMenu(IDR_POPUP);
CMenu* pSubMenu = pM->GetSubMenu(0);
pSubMenu->TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON, mypoint.x,mypoint.y, AfxGetMainWnd());
|
|
|
|
|
Thanks, but the submenus work just fine, the main menu doesn't show up. I have a popup menu item as the main menu, which shows up as a blank item, but if I position the mouse over it the submenu show up as it should.
Better idea?
|
|
|
|
|
Hi,I have to use the program code to close the mode dialog in parent window automatically? Because the parent windows should exit after the modal dialog has been shown .Please help me!Thank you very very very much!
|
|
|
|
|
I don't understand, which dialog you want to close ? the parent or the child dialog ?
|
|
|
|
|
maybe if you were asking clearly (I mean, with a bright english), people would understand you and answer you...
|
|
|
|