|
thankx, that was useful to me
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
Hi!
I have problems making URLs in RichEdits clickable.
What I have done so far:
1) Added the ENM_LINK flag to the SetEventMask parameter
2) Send a EM_AUTOURLDETECT message to the RichEdit with WPARAM = TRUE
3) In OnNotify, check for the EN_LINK message in NMHDR.
But unfortunately the OnNotify message never receives a message from the RichEdit control. Also the links don't get blue and underlined automatically
Any idea???
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Dominik Reichl wrote:
Any idea???
See if this article gives you any ideas.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Seems to be exactly what I was looking for
Thanks!!!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I have a procedure that creates a new instance of my CListCtrl-derived object on the screen in a random position when the user clicks a button. That works fine. But I'm trying to let the user then drag the control around on the form once it's there and I'm trying to use the MoveWindow() function, but I'm doing something wrong. Here's what I have so far:
if(nFlags == 1)
{
CRect rect,rect2;
int x,y,rectx,recty;
x = point.x - prevPoint.x;
y = point.y - prevPoint.y;
this->GetWindowRect(&rect);
this->MoveWindow(&rect);
}
CListCtrl::OnMouseMove(nFlags, point);
after making sure that the left mouse button is down, I was trying to move it according to the position it was in when the mouse was first clicked, but that wasn't working, so I just tried to do it with the exact same coordinates and everytime I try to move it, it just appears a couple hundred pixels off to the right and down. (there's code left in from what I was trying at first also)
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Perhaps the code is using screen coordinates but needs client coordinates, or vice versa. Check out ScreenToClient() and ClientToScreen() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've tried both of those also, and they still seem to be getting me nowhere. Thanks
If it's broken, I probably did it
bdiamond
|
|
|
|
|
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);
I can see a scrool bar but I can't control it. WM_HSCROLL don't received too.
What's a problem. How to implement it.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
You might need to experiment with setting the notify-style and having an ID other than IDC_STATIC , but I would recommend that you use a CWnd -derived class instead of a CStatic instead.
|
|
|
|
|
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);
I can see a scrool bar but I can't control it. WM_HSCROLL don't received too.
What's a problem. How to implement it.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
I have captured a frame from a video stream using capEditCopy, then created a IDataObject pointer called frame1,
IDataObject * frame1;
then used OleGetClipboard with frame1,
OleGetClipboard(&frame1);
Now as I understand this, and I don't understand this all that well, this means that the frame1 is now a pointer to the data that was placed on the clipboard with capEditCopy. If this is true, how do I know that it is grabbing the right stuff from the clipboard, if this is not true, can anyone suggest a way to get the data from the clipboard.
My aim is to get the data in some format, bitmap for example, that I can examine the RGB values of each of the pixels in the frame. What I don't understand also, is, what format is the data associated with frame1, I assume IDataObject. How can I turn this into a bitmap where I can examine the pixel values. Is this what the GetData function does, and if so how do I use it?
Any help with this would be very much appreciated. Thankyou in advance.
Micheal
|
|
|
|
|
The question is off-topic, but as the answer is quite simple, I'll bite:
No idea
But you should be able to figure this one out yourself (especially as it sounds like a homework-question). Will the library contain many books? The books contain many libraries? Can a loan belong to several people? Can a person have several loans? Go on like this, and you have solved the multiplicity (this is fun!)
The association, is a library a part of a book? A book a part of a library? A loan a part of a book? A book a part of a loan? Will the part outlive the whole?
And dependancy, is a library a part of a person, or is the library only using the person? Or vice versa?
|
|
|
|
|
Too kind
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
I feel like I'm someones mum... BTW, you've forgotten the 'r' in fruity in the sig
|
|
|
|
|
Thanks, And I was sure that I proof read it!
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Hi folks!
Is there a generic way to query the current CPU temperature?
Thanks,
Eric
|
|
|
|
|
Not that i know of. Usually the motherboard will come with utilities to doe this, but i don't recall ever seeing any with an API you could call into from your your code.
There might be something in the WMI computer system hardware classes.
e.g. Win32_TemperatureProbe
I've never used it so i don't know if/how it works.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
On many systems you get this from the I2C bus. That might be a good starting place for your search for more info. That said, it wouldn't surprize me if windows didn't allow you to use this bus, instead required you to use some hidden functions to do it.
Though as the other guy said, each motherboard is different. So don't be surprized if you can't get it the same on all systems.
|
|
|
|
|
How about:
hr = pService->CreateInstanceEnum(_bstr_t("Win32_TemperatureProbe"), WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_FORWARD_ONLY, NULL, &pEnum);
if (WBEM_S_NO_ERROR == hr)
{
do
{
hr = pEnum->Next(WBEM_INFINITE, 1, &pClass, &ulReturned);
if (WBEM_S_NO_ERROR == hr)
{
hr = pClass->Get(L"Accuracy", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("Accuracy = %ld\n", V_I4(&v));
hr = pClass->Get(L"CurrentReading", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("CurrentReading = %ld\n", V_I4(&v));
hr = pClass->Get(L"LowerThresholdCritical", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("LowerThresholdCritical = %ld\n", V_I4(&v));
hr = pClass->Get(L"LowerThresholdFatal", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("LowerThresholdFatal = %ld\n", V_I4(&v));
hr = pClass->Get(L"LowerThresholdNonCritical", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("LowerThresholdNonCritical = %ld\n", V_I4(&v));
hr = pClass->Get(L"NominalReading", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("NominalReading = %ld\n", V_I4(&v));
hr = pClass->Get(L"NormalMax", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("NormalMax = %ld\n", V_I4(&v));
hr = pClass->Get(L"NormalMin", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
TRACE("NormalMin = %ld\n", V_I4(&v));
TRACE("\n");
pClass->Release();
}
} while (WBEM_S_NO_ERROR == hr);
pEnum->Release();
} I've not tested it as my machine has no temperature probe.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I'll check that out, thanks.
Eric
|
|
|
|
|
hi,
i got an Doc/View app,
i want to transfer data (objects etc..) from my CFirstView to CSecondView that being open from CFirstView.
i open the CSecondView by getting the template and calling OpenDocumentFile.
can i transfer data between them?
this is the code (if it helps):
<br />
POSITION templatePos = pxApp->GetFirstDocTemplatePosition();<br />
<br />
while(templatePos != NULL)<br />
{<br />
CDocTemplate* pTemplate = pxApp->GetNextDocTemplate(templatePos);<br />
CString strDocName;<br />
pTemplate->GetDocString(strDocName, CDocTemplate::docName);<br />
if(strDocName == "CSecondView")<br />
{<br />
pTemplate->OpenDocumentFile(NULL);<br />
}<br />
}<br />
<br />
|
|
|
|
|
Well my first comment is why isn't the data in the document if it is shared across views!!
If you must continue then try CDocument::GetFirstViewPosition() etc. to iterate the Doc.Views.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
well, about your comment. that what i did eventually... thanks!
|
|
|
|
|
|
Hello,
I am having a win32 dll in which there are some exported funation. i want to use the that dll from another win32 application and call its functions. How can i know the the no of parameters to be passed and its datatypes. The name of function i get from the Dependency tool of visual studio but it does not shows the no of parameters and its types.
Plz help me regarding that.
Thanks
Kuldeep
|
|
|
|
|