|
hai,
here i have some clue.
to achieve your task, follow these steps.
1. in pretranslate message, write the following code.
if(pMSg->hwnd==m_grid.m_hWnd)
{
if(pMsg->message==161)
{
int debug=0;//now put a break point here and debug the application.
}
}
2.run it in debug mode, and click the down portion of the dialog(i.e. for down scroll)
now you will be taken to the code as specified in point 1.
3.now see the values of pmsg->wparam and lparam say for example x and y.
4.now, in the place, where you want to automatically scroll your grid,
use the following code to scroll 1 cell.
m_grid.SendMessage(161,x,y);
i hope this logic is a bit confusing. but i tried it and it works.
if you could understand the above, then this should work for you too.
any more doubts, you are welcome.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
USING THIS CODE i solved,
grid membervariable.SetTopRow(row value);
thank u my dear friend chandu,
keep in touch. now i'am really happy.
thanks a lot
|
|
|
|
|
wov thats wonderful.
now it seems that, you are my guru.
good and congrats.
|
|
|
|
|
Hi Friends,
I created a Dialog based application.To that i added flexgrid control.
I made it flexible so that it should keep growing as & when i add some data(some numbers) to it. After 10 records the grid grows & scroll wil be added.
But the problem is that, data after 10th ie:11,12...goes down.To see that i have scroll down.
I want it to display the current data.. For eg: for 15th record it should show the 15th one.
Please anyone help me out..
Thanks in advance.
Reagards
Shiva
|
|
|
|
|
your post resembles that of mr panthal, who has posted just after few minutes from your post.
you can refer it there.
by any chance, are you both colleagues or competitors.
good luck.
|
|
|
|
|
use this code,
Flexgridmembervariable.SetTopRow(enter row value);
panthal
|
|
|
|
|
Hello,
I want to use CList inside CList so anybody tell me how can i do it or any other alternative?
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
It will be better if you create an object that contains a list of other object, and this object contains a list of ....
Take a look on my article http://www.codeproject.com/cpp/SmartListII.asp[^] specially on the comments I wrote at bottom. I explain a hierarchie that I used in my project. It may help you.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Ya i know it but i want to use it with CList only.
Any idea?
Manish Patel.
B.E. - Information Technologu.
|
|
|
|
|
I havent done it for CList but I have for CArray, I have an array that is declared as follows in my CMyDoc:
CArray<CArray<CString, CString&>, CArray<CString, CString&>&> m_collections;
it is not the easiest of things to use, whereas
class CImage
{
}
class CImages
{
CArray<CImage, CImage&> m_images;
}
class CMyDoc
{
CArray<CImages, CImages&> m_images_images;
}
is much easier to use and read.
|
|
|
|
|
I agree with you, because of that I told about the "objects" (classes better said)
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hi,
I look in the setting some C++ project that i wrote using visual 2005 and i see some section
"Manifest tools".
What is Manifest in C++ project ?
Second question - what is the effect of set "Embed Manifest" to be "No" ?
Thanks for the help.
|
|
|
|
|
A manifest file describes the dependencies of your application. It is now mandatory (with VC2005) to use a manifest file. You will need to distribute it along with your application.
Yanshof wrote: Second question - what is the effect of set "Embed Manifest" to be "No" ?
You can choose to embedd the manifest into the output file or created as a stand-alone file. If you choose the second option (stand-alone file), you will need to distribute it with your application.
You can find more information here[^]
|
|
|
|
|
Hello
What are the best resources / books available to start learning COM?
Thanx
|
|
|
|
|
I dont know but i think it is better to post same message on COM discussion forum
You will get proper answer.
|
|
|
|
|
Codeproject has good articles for learning COM.
|
|
|
|
|
"Inside COM" is a good book for beginners who know C++.
|
|
|
|
|
|
Hi,
I am just about to finish my application (I could at last make the dlls work together). But now I want to take a look in some issues that I didn't take care about before.
My program saves and uses files with extensions *.fs and *.pc, I have no problem opening the files from my app, but if I go to the windows explorer and want to open them outside my programm... I must Shift+Right click to say open with... and look or my app in the selection dialog box.
I have make it automatic (to my laptop) from the options of the windows explorer in "Files Type" property sheet, but I would like to have it for all computers.
I know there is a way to do it automatically, but I dont exactly know how... (I guess through registry)
I was thinking to compile all release versions (app, dll...) and take them with the third party dll, the inis, all necessary things... and make an self-extractor exe. But i would like to have the file association.
Is an installator needed? Can I code it into my programm (i.e. on InitInstance, so the first time it is executed check if the association exists and if not, do it)?
Which APIs, Functions, registry paths (if needed) should I look for info about?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Please refer here[^] for more informaion.
Regards,
Paresh.
|
|
|
|
|
ExtractIcon() ? Please explain how this helps.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I am sorry, I have never used ExtractIcon() .
However, For file icon association please follow below steps. Hope this will work for you.
1. Create '.YourExt' entry in registry under HKEY_CLASSES_ROOT.
Key = .YourExt
Value = YourAppName.
2. Create 'YourAppName' entry under HKEY_CLASSES_ROOT
Key = YourAppName
Value = Your Application
3. Create 'DefaultIcon' entry under 'YourAppName'
Key = DefaultIcon
Value = YourResourceDLLOrEXE_WhereverYourIconResides,-YOUR_ICON_ID
4. Create Shell\Open\Command key under 'YourAppName'
Key = Shell\Open\Command
Value = YourApp.exe
Regards,
Paresh.
|
|
|
|
|
Paresh Chitte wrote: I am sorry, I have never used ExtractIcon().
I never said you did. I did, however, call into question your suggestion of using such. Double-clicking a file in Windows Explorer and have it associated with a particular application has nothing to do with icons.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks David.
I think we got diverted from original question.
Regards,
Paresh.
|
|
|
|
|
Nelek wrote: I know there is a way to do it automatically, but I dont exactly know how... (I guess through registry)
...
Which APIs, Functions, registry paths (if needed) should I look for info about?
You need to make the following changes to your registry:
HKCR\.fs = Nelek.Document
HKCR\Nelek.Document\shell\open\command = NELEK.EXE %1
HKCR\Nelek.Document\shell\open\ddeexec = [open("%1")]
HKCR\Nelek.Document\shell\open\ddeexec\application = NELEK
HKCR\Nelek.Document = Nelek Document
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|