|
Hi, i got a question, and av strugled enough tyms tryn to have this.
you know the way when you click on a combo box's arrow at the end a small list shows again with two other arrows that enable you to scroll the small list,
i have tried make combo box without scroll bars, but this still gives me the short list, that can only be scrollled with the keyboards up down arrows.
i haven't posted my question yet, sorry for the delay..
this is it, how do i achieve those combo boxes that i see, that shows a very long list, with like 20 or 30 items.no scroll bars.
thank you in advance.
|
|
|
|
|
king'ori wrote: how do i achieve those combo boxes that i see, that shows a very long list, with like 20 or 30 items.no scroll bars.
The only solution i can think as of now is to adjust the size of list of combo box in the resource such that it will fit your long list.
Regards,
Sandip.
|
|
|
|
|
You have to make a longer drop list in the resource editor: when your control is placed, click on the arrow, and you will be able to adjust the size of the drop list (instead of the size of the control itself). Make it big enough to show the number of items you would like.
|
|
|
|
|
HI all,
this error comes when i create a system dsn through coding with the use of CONFIGSYSDSN::
CONFIGSYSDSN:Unable to create a data source for the 'Microsoft Access Driver(*.mdb)' driver:
Could not write to registry with error code-2147467259
This error comes only when i run my application on VISTA with UAC enable option
Please tell me how can i remove this error.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hello everyone,
I have checked in all of my VC 2008 project, there is only PDB no DBG file.
My question after reading this link,
http://support.microsoft.com/default.aspx/kb/121366/en-us
1. Do we still need to use DBG file?
2. If yes, any benefits compared with only using PDB file?
thanks in advance,
George
|
|
|
|
|
Hi All
can any one give me simple timer code?Just i want to show and disable Messagebox through timer.Plz help me
modified on Thursday, September 25, 2008 2:58 AM
|
|
|
|
|
vcprog wrote: Just i want to show and disable Messagebox through timer
Not a good idea.
Regards,
Sandip.
|
|
|
|
|
ya i know that but i need it.Can you provied me some code?
I have a function A which have some code and in this function i am useign MessageBox.When i call function A then one MessageBox display and i want to hide these MessageBox auto after some time(it may be 1sec or 2sec). So plz help me
|
|
|
|
|
If you really need the message Box and you want to close it
this article might help you.
MessageBoxTimeout[^]
Regards,
Sandip.
|
|
|
|
|
|
Hi all ,
Generally in computer if i type %appdata% in RUN.. an press enter than tha AppData/Roming folders opens.
Please tell me hoe can i get this path thru coding.
please help me for this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
It gives path of desktop.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
This is code from that link.
TCHAR strPath[ MAX_PATH ];
SHGetSpecialFolderPath(
0,
strPath,
CSIDL_DESKTOPDIRECTORY,
FALSE );
In the above code you have to replace bold parameter with the one you are interested in.
In your case CSIDL_APPDATA /CSIDL_COMMON_APPDATA what ever you need..
Regards,
Sandip.
|
|
|
|
|
try API SHGetSpecialFolderPath with CSIDL CSIDL_APPDATA
"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/xml>
|
|
|
|
|
Thnks now its done
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
my pleasure
"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/xml>
|
|
|
|
|
Hi, may be not a good question. I have structure and I have created pointer to a structure. It is giving me memory leak if I delete this pointer also. Please help me how can I delete this pointer. Find below the code.
<br />
struct DemoTreeData<br />
{<br />
DWORD m_obj_id;<br />
RWCString* ptext;<br />
};<br />
<br />
DemoTreeData* pTreeData=new DemoTreeData;<br />
pTreeData->m_obj_id = debug->GetData();<br />
pTreeData->ptext = new RWCString(debug->GetMessage());<br />
delete pTreeData;<br />
pTreeData=NULL;<br />
Can I delete the pointer like above or we have to write the destructor for that? Please suggest me.thanks..
|
|
|
|
|
Two solutions: either write a destructor and inside the destructor, take care of destroying pText if not NULL (you'll also have to write a constructor to initialize it to NULL) or don't forget to destroy pText externally if you allocated it. Solution 1 is better.
|
|
|
|
|
humm! faster reply!
"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/xml>
|
|
|
|
|
SRKSHOME wrote: pTreeData->ptext = new RWCString(debug->GetMessage());
this is creating memory leak, you have to first delete memeory allocated to ptext, then delete the main structure.
Since, when you allocate memory to structure object, it will allocate only 4 byte to ptext object since it is pointer and when you delete the structure pointer it will only delete the 4 byte, which it is allocated to the variable at the time of allocation not the memory you allocate to ptext variable.
Now, for saving your self from memory leak, it would advisable first to delete memory allocated to datamember then delete the structure object itself
"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/xml>
|
|
|
|
|
Hi all,
I m using a ListCtrl,Here i m using a alternate colors property with help of article which is available on code project.
The problem is that if there is number of data peresent in listctrl and if i use a vertical scroll bar to scroll the List than the lower side List ctrl not looks like upper side it means noy looks in alternate colors pattern.
It looks like we rub some portion of its.
i think its a problem of refresh the list.
please help me how can i solve this.
i m waiting for your valuable suggestions and answers.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
try UpdateWindow() api, it will post WM_PAINT message to Listctrl to redraw it self!
"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/xml>
|
|
|
|
|
I m using a List in Form View,If i add Paint function it prompts OnPaint not use for views.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I am asking you to call CListCtrl->UpdateWindow()
"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/xml>
|
|
|
|