|
as i describled above there is one func which can be used for getting selected items.
like getFirstselecteditemposition n dont know how to get the selected item from that as there is no function to get the tesxt.
Tasleem Arif
|
|
|
|
|
tasleem143 wrote: there is one func which can be used for getting selected items.
Actually, there's more than one. What's wrong with:
int nItem = listctrl.GetNextItem(-1, LVNI_SELECTED);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
it did worked.
Tasleem Arif
|
|
|
|
|
how share the vb.net application to all machine with mediaplayer concept
|
|
|
|
|
|
(I'm using menus from the Dundas Toolkit, but I'm not certain it's relevant )
In one of our menu, not the longest one, the last item is a small "down" arrow/triangle, like the one used to expand a menu in some applications where menu items are hidden when not often used.
In my case, it does not expand anything, the menu is completly shown.
Is there an API somewhere that can tell me if a menu will be shown expanded or simply show the "most recently used items" ?
Or what can I google for to look for an answer ?
Thanks
Max.
Ok, I figured it out.
There was a separator as the first item of the menu that I did not see, and it seems to be playing havoc with Dundas ( so it was related to Dundas )
So yet another happy customer !!
-- modified at 10:39 Friday 22nd September, 2006
|
|
|
|
|
I want to use it as a server display .
Which will display many things like IP etc.
and it will go on displaying data as it reaches server.
How do I update my attached m_strEdit variable to show many things without deleting the previous received data at Edit box.
Rahul
|
|
|
|
|
suppose your m_strEdit is an Edit control of type CString
then for updating the same with new data
CString NewData = "a"
m_strEdit += NewData
|
|
|
|
|
You can assign a string type variable to it and then use it to set/reset the contents back.
You can always take the text from the edit box, attach some more characters to it and then replace the text but that would be a length procedure...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thats what he needed i think
|
|
|
|
|
Like:
CString strText;
m_edit.GetWindowText(strText);
strText += "More data...";
m_edit.SetWindowText(strText); Another option is to move the insertion point to the end using SetSel() , and then replace what's there (which is nothing) using ReplaceSel() . Try 'em both to see which you prefer.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
I want to start programming a new Anti-Virus using MFC or .NET or whatever other C++ platform for Windows.
I know the "regular" C/C++ and have all the algorithms ready, but now I need to connect it to Windows' mail clients.
Can anyone help me with the proper approach ?
As I understand I'll need to listen to the POP3 and SMTP ports for data, but how do I know that I'm the first one to get and parse it ?
Say, I have an additional AV like NAV, and now I want to put mine before it:
i.e. I'll be the first to scan the mail data coming through the POP3 port and the last to scan the outgoing SMTP data.
For my first experiment I'd like to change all the 'A' letters of the incoming mail to '66' and all 'B' letters of all outgoing mail to '88'.
Is there anywhere a piece of SW that I can use for implementing this course of action with some windows dialogs (not a consol application) ?
Thank you,
Jimmy
|
|
|
|
|
hi all i want to remotly execute the files using the WMI in VC++, i had searched but not found api related to that can any body help me out on this?
Tasleem Arif
|
|
|
|
|
Does anyone know how can I log on to a WindowsXP system with a GemClubMemo smart card?
The PC will be connected to a domain.
Thanks in advance!
sirtimid
|
|
|
|
|
Is there anybody know how to change the virtual machine settings of IE?
3.141592653....Never Stop
|
|
|
|
|
Well I have a mini-project just for my own personal curiosity where I've setup a propertysheet and added a number of propertypages to it. So far so good, no issues. However on on of the propertypages I want to add a toolbar. Now there is quite a bit of info out there on toolbars but for the life of me I can't work out what I'm missing so I'm hoping one of you might point me to some source code where this is done or point out what I'm missing.
Below is the code I added to add the toolbar to what I think should be the property page.
int CClientMgrPage::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CPropertyPage::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
CFrameWnd *pFrameWnd=(CFrameWnd *)GetParent();
if (!m_CMgr_ToolBarCtrl.CreateEx(this, TBSTYLE_FLAT, WS_CHILD|WS_VISIBLE|CBRS_TOP) ||
!m_CMgr_ToolBarCtrl.LoadToolBar(IDR_Emgr_TOOLBAR)) {
TRACE0("Failed to create Client Mgr Toolbar");
}
m_CMgr_ToolBarCtrl.EnableDocking(CBRS_ALIGN_ANY);
pFrameWnd->EnableDocking(CBRS_ALIGN_ANY);
pFrameWnd->DockControlBar(&m_CMgr_ToolBarCtrl);
return 0;
}
With this code in place I trigger an assertion when I click on the tab containing the Toolbar.
CDockContext::CDockContext(CControlBar* pBar)
{
ASSERT(pBar != NULL);
ASSERT(pBar->m_pDockSite != NULL); <-------
}
Any ideas?
|
|
|
|
|
Hi,
I have created gridlines using CListCtrl in reported view.I have entered data in some gridlines.
Now I want all the the data.How can I get that data?
Can u please help me.
Thank you.
|
|
|
|
|
vc++_fragrance wrote: CListCtrl.How can I get that data
CListCtrl::GetItemText(...);
Use it while iterating through the elements of the list control using a loop.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
You can use GetItemCount for get items of List and use from a loop with GetItemText for read of listctrl.
|
|
|
|
|
Hi all:
Is there any way to prevent the Edit box from wrapping?
I can't find this style among ES_*
|
|
|
|
|
did u try ES_AUTOHSCROLL?
nave
|
|
|
|
|
Naveen R wrote: did u try ES_AUTOHSCROLL?
Yeah, but this is a read only text box.
|
|
|
|
|
so what? This prevents the text from wrapping....
nave
|
|
|
|
|
Does the control have the ES_MULTILINE style?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|