|
That is for devices manufactured by a certain company. I indicated in my first post that such things are possible if the manufacturer has implemented such a feature and is exposing APIs to capture those details. However, that would be an edge case.
But most devices are simpler, and Windows certainly does not provide you features to measure "touch pressure".
Again, I'll ONLY accept an API from MSDN that tells me what the touch pressure was when a touch event happens.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Rajesh R Subramanian wrote: Again, I'll ONLY accept an API from MSDN that tells me what the touch pressure was when a touch event happens.
Unfortunately what you require is not, in my opinion, what the OP has asked for
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Unfortunately what you require is not, in my opinion, what the OP has asked for
Of course, it is. The OP asked a question that is more general (and not specific to devices built by the analog.com company).
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
You impertinent youngster!
Well, I surrender...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Well, I surrender...
Are you French? Oh, sorry. Never mind - this surrendering is about the touch screen discussion.
Good discussion though, as usual (THHB).
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Rajesh R Subramanian wrote: Good discussion though, as usual (THHB)
Like the old gold days.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Like, certainly the good old days. Life's taking me for a ride, you know? It's becoming increasingly hard for me to find time to do what I want, instead of doing what I'm expected to do.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
I usually do what I want, anyway. I suppose my managers are not so happy...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Both of you make me some weak!
Originally I am just ask a question. But you let the discussion of my question become a chat-room! I am FAINTING!
There is some white cloud floating on the blue sky. That's the landscape I like.
|
|
|
|
|
This time, I win!
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Have you checked if the vendor provides a library to access touch screen functionalities?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
cpallini's correct... this type of information would only come from software provided by the vendor and will be vendor specific... meaning one vendor's libraries or API calls will not work with anothers
|
|
|
|
|
CPallini wrote: Have you checked if the vendor provides a library to access touch screen functionalities?
Well, that's the same thing I said as well in my reply to the OP. And, that would be the only possibility.
If a device is sensitive to such data, and is exposing APIs to capture that information, then that would be a different story. However, it is not the case with regular mouse and touch pad devices.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
AFAIK and i too agree with rajesh, there is no such api's in windows.. but might be your touch screen vendor may be providing these type of library if your client are intrested in same type of functionality
"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
|
|
|
|
|
Hi. I have been reading articles, messages and anything I can find but I still
cannot get a DIBSection to work. Can anyone tell me what I am doing wrong or point
me to an article that explains how to use one.
This code as written works,it paints the window red. But when I use the two commented lines instead of CreateCompatibleBitmap I get nothing. The handle returned by CreateDIBSection seems wrong, when I hover the mouse over it debug says it is unused.
Any help at all would be great. Thanks in advance.
void CChildView::OnDibtstTest(){
CRect r;
GetClientRect(&r);
BITMAPINFO *pbmInfo = new BITMAPINFO;
memset(pbmInfo,0,sizeof(BITMAPINFO));
pbmInfo->bmiHeader.biSize=sizeof(BITMAPINFOHEADER);
pbmInfo->bmiHeader.biWidth=r.right;
pbmInfo->bmiHeader.biHeight=r.bottom;
pbmInfo->bmiHeader.biPlanes=1;
pbmInfo->bmiHeader.biBitCount=32;
pbmInfo->bmiHeader.biSizeImage=r.right*r.bottom*4;
void *pImg;
CDC *pDc=GetDC();
CDC *pmDc = new CDC;
pmDc->CreateCompatibleDC(pDc);
CBitmap *pcBm = new CBitmap;
// HBITMAP hBm = CreateDIBSection(pDc->m_hDC,pbmInfo,DIB_RGB_COLORS,&pImg,NULL,0);
// pcBm->FromHandle(hBm);
pcBm->CreateCompatibleBitmap(pDc,r.right,r.bottom);
pmDc->SelectObject(pcBm);
CBrush br(RGB(255,0,0));
pmDc->SelectObject(&br);
pmDc->Rectangle(0,0,r.right,r.bottom);
pDc->BitBlt(0,0,r.right,r.bottom,pmDc,0,0,SRCCOPY);
delete pbmInfo;
delete pmDc;
delete pcBm;
}
|
|
|
|
|
Kaaib wrote: // pcBm->FromHandle(hBm);
i believe this does not do what you think it does. Try with
pcBm->Attach(hBm);
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Code-o-mat wrote: > //TODO: Implement signature here<
i love this TODO
"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
|
|
|
|
|
//TODO: Implement thanks here...
thanks i guess...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Thank you very much code-o-mat! That did the trick.
Can you tell me why FromeHandle does not work?
|
|
|
|
|
FromHandle returns the CBitmap object that has already been attached to the bitmap handle, if no such CBitmap object exists, it creates a temporary one and returns a pointer to that one. It will not attach your object to the handle. FromHandle is actually a static method.
CBitmap *bmp = new CBitmap;
bmp->FromHandle(hbmp);
is the same as
CBitmap::FromHandle(hbmp);
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Now here is a class
class CPipeLineApp: public CWinApp
{
public:
CDengLu* dgDlg;
.......
}
I want to set dgDlg as a extern variable so that I can call dgDlg in class CMainFrame .
dgDlg has variables :name and pass .
I want to call them too.
Please lend me a hand.
modified on Wednesday, March 16, 2011 8:43 PM
|
|
|
|
|
Jokcy wrote: I want to set dgDlg as a extern variable so that I can call dgDlg in class CMainFrame .
As it is, dgDlg can be accessed from any CMainFrame method.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
|
I'm awfully sorry.I've made a mistake.The question has been modified.Please help me.
|
|
|
|