|
I also try this it's still don't work
int sel = m_clist1.GetSelectionMark();<br />
sel++;<br />
m_clist1.SetSelectionMark(sel);<br />
m_clist1.SetItemState(sel, LVIS_SELECTED, LVIS_SELECTED);<br />
m_clist1.SetItemState(sel, LVIS_FOCUSED, LVIS_FOCUSED);
|
|
|
|
|
not sure exactly, but have you also set focus onto this control?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
Thank a lot
It work!!
m_clist1.SetFocus();<br />
int sel = m_clist1.GetSelectionMark();<br />
sel++;<br />
m_clist1.SetSelectionMark(sel);<br />
m_clist1.SetItemState(sel, LVIS_SELECTED, LVIS_SELECTED);<br />
m_clist1.SetItemState(sel, LVIS_FOCUSED, LVIS_FOCUSED);<br />
|
|
|
|
|
The remarks section for the MFC version of this function says:
This member function implements the behavior of the Win32 macro, ListView_SetSelectionMark, as described in the Platform SDK.
And the remarks section for the Platform SDK version of this function says:
The selection mark is the item index from which a multiple selection starts. This macro does not affect the selection state of the item.
Here, you are trying not only to set the selection mark, but to change the selection state of the item. So, making a consequent call to SetItemState() works for me.
m_myList1.InsertItem(0,"adad");
m_myList1.InsertItem(1,"dase");
m_myList1.InsertItem(2,"rweq");
m_myList1.SetSelectionMark(1);
m_myList1.SetItemState(1,LVIS_SELECTED|LVIS_FOCUSED,LVIS_SELECTED|LVIS_FOCUSED);
|
|
|
|
|
Hi everybody,
if my application accepts an eMail which is send via Drag'n'Drop, i need to
extract the data stored into the clipboard to determine the text of the mail.
If i drag an eMail on the Desktop, does Windows the same like my application?
So if a mail can be saved on the desktop via Drag'n'Drop to an .eml file,
all informations about this mail are into the clipboard?
Or does the eMail-Client this work? Knowing where the file has been dropped and
creates the .eml File by knowing his own data?
Big thanks
|
|
|
|
|
Hi...
I just wanted to know.... Is SQLDataReader Class in C#?
If it is a class then why we cannot able to create an instance for that..if not what is that can anyone plz explain it?
Why we cant we able to create an instance for SQLDataReader ?...... in C#?
-- modified at 6:54 Monday 19th November, 2007
Hello sir
|
|
|
|
|
Do you want to use at the CLI/C++?
|
|
|
|
|
I am using CryptUnProtectData function to decrypt Wireless Access Password
from a Wireless Connection Profile.
Even though I am able to decrypt the password on a Windows Vista PC, I am
not able to do this on a Windows XP Machine. I am calling CryptUnProtectData
inside a windows service application.
Is it possible to decrypt the wireless connection password using
CryptUnProtectData on a Windows XP PC ?
|
|
|
|
|
Arun krishnan wrote: Even though I am able to decrypt the password on a Windows Vista PC, I am
not able to do this on a Windows XP Machine.
What happens when you try it on your Windows XP machine?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
The Function Fails return "flase" and the password will not be decrypted.
|
|
|
|
|
It appears that you've to follow a set of rules to get this thing work. Did you read the "Remarks" section of CryptProtectData() in MSDN?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
I have seen this section. since the method i have adopted works for Vista, i hope its the same for XP too. Have you worked on the function before?
|
|
|
|
|
I have worked on it, but on Vista. I haven't tried it on any other OS.
|
|
|
|
|
I have tried firing GetLastError() after the error, which returns,
error 183: Cannot create a file when that file already exists.
Have any idea on how this is happening
|
|
|
|
|
ok
i am user
newrhm9019@gmail.com
|
|
|
|
|
|
|
Do you people have any idea on how to create a home banking system using Visual C++? I don't know how to create one. So, i need your help A.S.A.P guys..Thanks..
tangocharlie40
|
|
|
|
|
Is this your homework -- and is it due tomorrow?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
yes..
but I have 3 days with me.
So, if you are of any help, please help then..
Thanks.
|
|
|
|
|
Peter Weyzen wrote: Is this your homework -- and is it due tomorrow?
But why tomorrow?
|
|
|
|
|
tangocharlie40 wrote: Do you people have any idea on how to create a home banking system using Visual C++? I don't know how to create one. So, i need your help A.S.A.P guys..
Whats are your requirement for same???
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
it should be a simple simulation of a real bank.
|
|
|
|
|
Well, what's that mean?
You MUST decide exactly what your program will do.
From there you can figure out how to do it.
This is called "designing". DO IT.
I, for one, refuse to do your homework for you.
If you want my advice, "drop the class".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
Download the Banking SDK and simply call the SimulateSimpleBank() function. Don't forget to include bankass.h or the call may not work!
|
|
|
|