|
You could create a CScrollView derived class's object in the window or dialog, and use its WM_MOUSEMOVE , WM_LBUTTONDOWN , WM_LBUTTONUP etc to move the picture. You can display the picture in your CScrollView-derived class's OnDraw() etc.
There may be easier ways of doing it.
this is this.
|
|
|
|
|
thank u .
any sample code or any link please.
sree.
|
|
|
|
|
|
i ready completed that bitmap scrolling using scrollers.i want bitmap should move bymouse
|
|
|
|
|
As I said in my earlier post, you will need to handle the WM_MOUSEMOVE, WM_LBUTTONDOWN,... etc messages and scroll the window according to that.
It is a sequence of operations requiring you to save the position of the mouse, a flag for the LButton down event, and do the actual scrolling in the WM_MOUSEMOVE handler function.
this is this.
|
|
|
|
|
thank u.
i done like that only.but the problem is only scrollbars are moving but the bitmap is not moving.
sree.
|
|
|
|
|
|
what is the difference between win 32 and win64 ?
|
|
|
|
|
32-bit refers to the number of bits that can be processed or transmitted in parallel, or the number of bits used for single element in a data format.
When used in conjunction with a microprocessor, the term indicates the width of the registers. A 32-bit microprocessor can process data and memory addresses that are represented by 32 bits.
Therefore, 64-bit refers to a processor with registers that store 64-bit numbers. A generalization would be to suggest that 64-bit architecture would double the amount of data a CPU can process per clock cycle.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank u.
|
|
|
|
|
wrote: what is the difference between win 32 and win64 ?
Here [^] is the good article on same
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
If you really mean to ask about the "OS" , it's like you have win95, 98, ME.. XP all these are 32 bit OSes. Before these, all were 16 bit OSes i.e Win3.1, now Have you heared about XP64? This is the newer version XP. Which is targetd to run on any 64 bit machines. For the moment, AMD64 bit processors are flying high, when use this OS in it, you'll really get a high performance. Intel's also released it's 64bit(which supports upto 8GB of RAM), but still it's yet to gain popularity cuz it's still expensive. So it's basically the number of Data lines available for the processor to handle data. If it has 32 bit lines, it can handle 32 bits at the same time, so there would be 32 bit registers too. You can stroge a huge 32 bit number without splitting it. If it's 64 bits oh! it's going to be really huge and your processor can do twice the amount of work your PC used to do with a 32 bit processor. but provided , your application makes use of the 64bit feature. If your application is still 32 bit, then it's vision will be limited to the 32 bit range. So A 64 bit OS, a 64 bit processor would make your applications fly!
If you were talking about win32 API, hmm, it's the programming Interface that allows you to make application to run on a 32 bit machine.If you say Win64(I haven't heard about it yet), naturally it's going to allow you make application for a 64bit machine.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
hi ,
it's nitin,please help me out for visual C++ swapnng vcxpawn.exe.
i install microsoft visual C++ 6.0 version but when i going to code something on visual C++ and compile the program then i got the error of
swapnimg vcspawn.exe.so please help me out for that.
nitin
|
|
|
|
|
|
hi,
thaks for send me back.but how could it be can you send me the process of this method.because i click your mail then i got microsoft page and i follow the step which is mention in microsoft page but my code is still not working and i got the spawning error.please help me out for this.
Thanks...........
Nitin dalal
nitin
|
|
|
|
|
Please send me the code or give an idea to display the file name without path in platform SDK.(PURELY WIN32 CODE).
Thanks in advance...:
Ashok Reddy
|
|
|
|
|
LPTSTR PathFindFileName(LPCTSTR pPath);
Also you have to include shlwapi.h and link with shlwapi.lib .
You can look for the documentation of this function in MSDN etc.
this is this.
|
|
|
|
|
Hi Khan++,
Thanks for u r early and perfect reply for my q?
It was working fine....
Thanks & Regards,
Ashok Reddy.
|
|
|
|
|
First :
You need to tokenize it upto last "\\" so that you can get only the file name.
Second:
If you need to search from the directory then se:
WIN32_FIND_DATA structure and then use FindFirstFile FindNextFile
Cheers
"Peace of mind through Technology"
|
|
|
|
|
wrote: Please send me the code or give an idea to display the file name without path in platform SDK.(PURELY WIN32 CODE).
Here is the another way to get file nane from path.
-Get file path
-Reverse the string
-strtok(path,"/");
-Reverse the resultant string.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
How to set the max and min of CEdit associtted with spin control
|
|
|
|
|
anilksingh wrote: How to set the max and min of CEdit associtted with spin control
Use SetRange or SetRange32 methods of the spin control.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
See here
http://www.codeguru.com/cpp/controls/editctrl/article.php/c511/
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
For example do like this
m_feEditValue.SetRange(6,23);
m_pSpin = (CSpinButtonCtrl*) GetDlgItem(IDC_SPIN1);
m_pSpin->SetBuddy(&m_feEditValue);
m_pSpin->SetRange(6,23);
And also you should handle onvscroll event for spin, and onchange edit event for edit control.
handle both events then you can do this.
Hey do you know this is my hundredth post.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|