|
Hi everyone
There is "single select" property in LictCtrl properties.
How set this property in my source?
Is there a FLAG than I can used it in SetExtendedStyle() function?
Please help me.
With special thanks.
|
|
|
|
|
LVS_SINGLESEL. You can use it in the Create() function. Or ModifyStyle().
|
|
|
|
|
thank u very much my freind.
good luck & good bye
|
|
|
|
|
Hi,
The IShellFolder interface to Desktop folder can easily be accessed using
SHGetDesktopFolder() but please tell me how can I retrieve the PIDL and IShellFolder interface to any drive (e.g. "C:\") or folder (e.g. "C:\Windows").
Regards,
Abhijeet
|
|
|
|
|
|
Hello,
I have created dialog without resources and the dialog has a combobox on it. The combo box appears on the dialog and I can select options from it .
But the selected item is not transferred in a variable.The DoDataExchane() does not transfer the content from the control to a variable.
I think I need to subclass the dlg item for the messages to work properly.
How do I subclass the combo box ?
Thanks and regards
Prithaa
|
|
|
|
|
|
prithaa wrote: But the selected item is not transferred in a variable.
Do you want the cursor selection of the combo box to be transferred to a variable or the actual data? If you want the cursor selection, use:
SendMessage(hComboBox, CB_GETCURSEL, 0,0);
where hComboBox is the window handle to your combo box.
If you want to get the actual data, use:
SendMessage(hComboBox, CB_GETLBTEXT, SendMessage(hComboBox, CB_GETCURSEL, 0,0),&text_buffer);
See MSDN for more on CB_GETLBTEXT[^]
where hComboBox is the window handle to your combo box, and text_buffer is a char which receives the data.
Hope this helps!
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
U can use this code
CComboBox m_combo;//in header file
m_combo=(CComboBox *)GetDlgItem(ID_OF_COMBOBOX);
so now you can use m_combo as member variable , if you use this u don not need
DoDataExchane()
Good Luck
|
|
|
|
|
Hello,
Thanks
For now my problem is solved and I could get the value from the combo box without DoDataExchange() because I do not know subclassing .
But is it possible to do the subclassing part and is it as simple as calling
SubclassDlgItem() for my combo box and then using the id in DoDataExchange() for value of data.
Thanks
Prithaa
|
|
|
|
|
|
prithaa wrote: But is it possible to do the subclassing part and is it as simple...
Why do you think that the dialog needs to be subclassed?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for all your replies,
I thought subclassing enables to handle windows controls (messaging) on a dialog box which is made without resources .so I should subclass the windows controls on the dialog. Also I am not able to use DoDataExchange() function without subclassing.
Prithaa
|
|
|
|
|
prithaa wrote: ...a dialog box which is made without resources .
Are you creating this dialog at runtime? Is there something not known about it at design time?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
Thanks for your replies .
I am not creating dialog at runtime it is created in design time.
Pritha
|
|
|
|
|
prithaa wrote: ...it is created in design time.
Then how does it not have any resources?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Records
1. Catalogue No 7 Digits (First 4 digits being the year,
Last 3 digits being the unique record key.
Eg. 2007123
2. Title < 30 Char
3. Author < 30 Char
4. Format 1 Char 4 diff format, namely <S>, <L>, <O>, <P>
Create a function, named CreateBook. When called, it will allow the user to enter the records. Details are to be saved into a file named Book.dat.
Structure of File
<createdate><no of bks>
<catalogue no><title><author><format>
<catalogue no><title><author><format>
<catalogue no><title><author><format>
<catalogue no><title><author><format>
.
.
.
.
<catalogue no><title><author><format>
Where createdate is the date when the file is being created.
Describe the test for Catalogue No, the Purpose of the test, and …. Screenshots
Additional information is to be added.
- Classification Non Fiction/ Fiction
- DeweyNo For eg, Fiction has a deweyno of 999.999
- Genre For eg, Comedy, Romance…
Draw Classes, showing their relationships to solve the OOP technique, showing clearly the attributes and methods.
help pls
-- modified at 6:53 Saturday 7th July, 2007
|
|
|
|
|
How do you want this data to be stored? In a database file or just a text file with your own formatting and syntax?
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
gnowkeenz wrote: Draw Classes, showing their relationships to solve the OOP technique, showing clearly the attributes and methods.
Better get started. Turning in late homework is a no-no!
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hai Good Morning...
I need to update the xml file dynamically in vc++. i did parsing to the xml file then i displaying the parsed values in treectrl. now i am goin to edit the values in the ctrl...which means i will rename the values or deleting the values if i did these changes in treectrl i need to update the same values in XML file also....
any idea....
pls reply me
|
|
|
|
|
Hope this helps...
MSXML2::IXMLDOMDocumentPtr m_pXmlDoc;
if(m_csFilePath.IsEmpty()) return false;
_variant_t varString = _T(m_csFilePath);
m_pXmlDoc->save(varString);
return true;
|
|
|
|
|
hai joan...
Thanks
|
|
|
|
|
Hi
i introduce a laibrairie in my project, whene i compile there are error :
D:\Program Files\Microsoft Visual Studio 8VC\PlatformSDK\include\wspiapi.h : (44)error C2894: templates cannot be declared to have 'C' linkage
please help me to resolve this pb.
Thank you verry mutch
|
|
|
|
|
Strange - I don't see anything related to templates in there.
If I include that file anywhere in my projects it compiles fine.
What's the code at and around the offending line?
Mark
This episode brought to you by the number 5
|
|
|
|
|
I must intruduce WinPcap to capture Paquets, fot that i add in Linker>Input : WinPcap.lib and in C/C++>Preprocessor : WIN32;_DEBUG;wpcap and in Forme1.h i introduce #include "Pcap.h"
all this was defined in http://www.winpcap.org/docs/docs_40/html/group__wpcapsamps.html[^]
please help me to resolve this problem
Thank you verry mutch
|
|
|
|