|
In the Ribbon Control What CMFCRibbon(Combo Box here) do i Put? ComboBox does not work or combobox. I know A button is CMFCRibbonButton and a CheckBox is CMFCRibbonCheckBox. Please Help
|
|
|
|
|
What's wrong with CMFCRibbonComboBox[^]? seems to me that its stated intent (The CMFCRibbonComboBox class implements a combo box control that you can add to a ribbon bar, a ribbon panel, or a ribbon popup menu) is just what you want?
|
|
|
|
|
Hello,
I have managed to pull a program from one of the articles
that displays an image(jpg)
I have added the following code to get each pixel on the screen
COLORREF color = pDC->GetPixel(x,y);
colorNo = (int)GetRValue(color); //Then write values to file for rgb
I then create another program to gather what has been writen
to file and then display it.
Unfortunatly what is displayed is a 'carpet like image'
I understand that the return value for GetRValue is a byte
so I have casted this.
Can any body know why I am having problems.
Is there any good programs for this?
I am doing this for game purposes, eventualy I would like to get into 3d graphics
what programs do the pro's do to save theirs
Please can anybody enlighten me.
cheers Simon
modified on Saturday, February 7, 2009 11:57 AM
|
|
|
|
|
I want to capture Text Under Mouse pointer. I have used
IAccessible::get_accName and
IAccessible::get_accValue to find out Text Under Mouse using
AccessibleObjectFromPoint .
But I want just a word that is under mouse pointer. I am looking for any help.
Thank you
Regards,
Swapnil Shah
|
|
|
|
|
|
I have already used IAccessible. This technique gives you a whole sentence. I am looking for word capture. I want to grab a word under mouse from any application. plz give me some suggestions.
Regards,
Swapnil Shah
|
|
|
|
|
Hi Swapnil,
I am not able to instantly think of a technique to get this done. Probably you can use an OCR and get the word under the mouse cursor, and then search for it in the sentence that IAccessible returned. If it's present in the sentence, you could be double sure.
Ya, I know it's dumb. But why not check if it goes through well?
I'll think on this line and write you another reply if I get a better idea.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi
Thanks for reply.
I think i should try OCR. I have never used it but i have read that its highly unreliable. plz reply me if u get any better idea.
Regards,
Swapnil Shah
|
|
|
|
|
Hi,
Did you try using an OCR? I thought over your problem statement and I realise that it's even more complex than it sounds to be.
Using the previous method I suggested, you could retrieve the entire text under the window. But, if you need the text (a word?) that's just under the mouse cursor, it would be easier if the text is selected. You could then use something like GetActiveWindow() followed a GetFocus().
If the text weren't selected, I can't think of a readily available technique to achieve this. You will have to do some research on it. If you do achieve it, that would make a nice article for CP.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
We have used the same code as given in
http://blogs.msdn.com/oldnewthing/archive/2004/04/23/118893.aspx
to capture objects under mouse in timer.But we are facing memory leakage problem.
While debuging this code we got the point of leakage is in function
AccessibleObjectFromPoint.
We already using IAccesible::Release function and VariantClear to release memory
but still memory leakage is there.
Any one know ,how to release memory used when AccessibleObjectFromPoint is called.
Please help.
Thanx in advance.
-Jay
|
|
|
|
|
Hi,
Use a forum appropriate to the topic to create a new thread. I have honestly not worked on this and so I won't be able to answer you. By creating a new thread, your question will be viewed by many people and some of them may be able to give you valuable inputs.
I think you could safely use the COM forum for this query.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I want to create a multilingual application in vc++.net using visual studio 2005. Please help me out. Please Post examples...
Thank You.
|
|
|
|
|
If you want in vc++.NET so your choice is wrong because here is for VC++.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
plz show me the VC++ example. May be...., I can get some help..
|
|
|
|
|
|
Hi all,
i m using Access database and CRecordset derive class, when i fill long string entries in database than this error comes "String data, right truncated"
please tell me how can i remove this error.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Show your code,please?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Sounds like the strings you're putting in are longer than the database schema allows - have you checked that?
|
|
|
|
|
The database field is probably set to allow a maximum number that you're exceeding? If I remember, access allows 50 characters or something like that by default for a string. Try increasing it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I cannot execute the following code properly.
I just need to see the system function to work.
It always return a -1 (error) when I printf the function.
What could be the problem. I dont know how to use the system function.
Anybody plz try this code & type the correct code for me.
#include <stdlib.h>
#include <stdio.h>
#include<dos.h>
#include<conio.h>
void main()
{ clrscr();
printf("About to spawn command interpreter and run a DOS command\n");
printf("%d",system("dir")); //NOT WORKING...printing a -1(ERROR)
system("dir"); //NOT WORKING---I can't see anything in screen.
getch();
}
|
|
|
|
|
It worked for me. What is system(NULL) returning? Reference[^] says "The behavior and return value are platform-dependent."
|
|
|
|
|
Its probably not working because your program is 16 bit and the OS you're running it on is 32 or 64 bit.
«_Superman_»
|
|
|
|
|
I've found some stuff at MSDN, but not really enough to figure out how to do this.
I'm looking to add check boxes to a list, and allow the user to check any of the boxes and capture that.
I have not figured out how to do this, and I'm not really sure how to start.
If that is not really going to be easy to implement, I would alternately like to just put a blue dot or something in front of each list item, and allow the user to click those, and I'd change them to red, or something. And be able to check which the user selected.
I found CheckBox and GetCapture functions from MSDN, but as I say, I'm not sure how ti use them.
I searched here, but the GetCapture discussions seem like they are about implementing advanced features.
I didn't find anything that seems the right direction for the check box.
I'm writing a program for a Windows Mobile 5 handheld with a touch screen, and using C / MFC (I am actually programming as much as I can with C, rather than C++, because I don't know C++ that well.
|
|
|
|
|
I'm programming for my WM5 device using C, I really don't know C++, so I'm sticking with C (MFC).
All I really want to do is add SOME sort of buttons to my app.
I have a list that I'd like the user to be able to select items in the list,
I can't find anything that makes any sense (because it is all C++ stuff with the something.somethingElse or something::somethingElse and this doesn't seem to do anything at all.
I find it hard to believe that I'm the first one to try this.
I found all sorts of stuff but I'm not sure what will actually make a button or check box.
I'd like something like this:
http://msdn.microsoft.com/en-us/library/aa454207.aspx[^]
from MSDN, but I settle for something simplier.
I searched for how to implement what they show here, but its like the terminology they use from the page I link is so totally different from any sort of implementation that I could not find anything else about that.
I would appreciate any help!!!!!
|
|
|
|
|
OK,
I'm used to writing windows apps for national instruments hardware, using Lab Windows, it is SW by NI for their hardware (I use this at work);
when I want to add a button to my app, I can use a GUI and add a button to my app panel, and then create a callback function from that.
THIS IS ALL I WANT TO DO!!!!!!!!!! [I'm frustrated ... with myself because I cannot find this in Visual Studio!!!!!]
Can someone that knows a little about VS, and WM5 development (or even WIndows developement) clue me in as to how this is done?
I looked at VS and found a Toolbox on the right side of the panel, but there was nothing in it.
I checked the menus, and cannot find anything that looks like it would help me create a SIMPLE BUTTON!!!!!!!
PLEASE, PLEASE, PLEASE Help!!!!!
|
|
|
|