|
deeps_cute wrote: when i select the item in list box it takes time to call the function inside the item seelcted. this is because of the infinite loop.
What do you mean ? What is this function you are calling ? And why does it take time ?
BTW, it is generally better not to work on GUI classes from another thread. For example: add strings in your list box from another thread. It is better to send a message from your thread to the window that manages the list box.
|
|
|
|
|
see i have to list some items (read from a file say list.txt) in a list control. the file list.txt is changeble everytime. hence i used a infinite a loop to read the file and updated it to the list box using threading. when i select the items in list box it takes several time to focus the selected item. i tried with sending a message also. but it does not work. what i have to do?
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: hence i used a infinite a loop to read the file...
Instead of wasting CPU cycles polling the file, why not let the OS notify you that the file has been changed?
BTW, you might want to wait longer than 2 hours before re-posting your question in order to give everyone a chance to read it.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
in my application,i hav executed a web page in internet explorer, now i want to bold a paticular text in the page....how can i do it!!!! plzzz help me out.how can i edit a web page in VC++ MFC.
|
|
|
|
|
You really can't. Loading a page in IE just loads the HTML, not the underlying script that typically generates it, and it's jsut a text file, you can trivially write a program that does what notepad does, but really, your question makes no sense at all. It's kind of like asking how to make a car out of bananas.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can edit web page using internet explorer if you hosted the webbrowserctrl in your application. webbrowserctrl is a COM component which is the backbone of IE.
Since IE hosted the webcontrol in a external process, You can edit the web page, if you can access the webbrowserctrl from external process, in which iam less familiar ("please search for automating Internet Explorer") .
If you really want the web page for your application, host the IE's control and do what ever you want on the html page and in run time using MSHTML COM objects.
Best Regards
Raj
-- modified at 7:03 Monday 11th June, 2007
|
|
|
|
|
thanx Raj! i m trying to implement this...
|
|
|
|
|
hi,
i am having problem in developing a viewer which can open all format of image files (like .img, .tif, .jpeg etc).
actully i have to ,make a viewer for opening a georeferenced images, these images may be maps which have latitude and longitude values in each of there pixels.
if anyone could help.
mrianl
mrinal
|
|
|
|
|
Hey,
you can use all these Libraries for opening the image format that u like to open on your viewer:
cximage.lib
j2k.lib
jasper.lib
jbig.lib
Jpeg.lib
png.lib
Tiff.lib
and also you may have to use opengl at some point, for that u can use these libraries :- "zlib.lib opengl32.lib glu32.lib"
Best Wishes,
Pankaj Sachdeva
|
|
|
|
|
Hope this[^] will help you.
Regards,
Paresh.
|
|
|
|
|
Use GDI+ for tif/jpeg/gif. You need a third party library for other formats.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Use FreeImage (it's a free image processing library available with source code on SourceForge.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You can use of GDI+ or CImage class for show some images.
|
|
|
|
|
where the Objects for Document ,view , Class objects getting created in Document view Architecture.
plz explain me .
|
|
|
|
|
As part of a macro, I need to copy the formatting, formulas, and buttons with their assigned macro's of one worksheet on a new sheet.
I've got most of the way there, but when it comes to duplicating the macro buttons (I have been copying and pasting them) the visual code says
ActiveSheet.Shapes("Button 15").Select
but this creates a problem because the future buttons won't always be number 15.
Any ideas so that the macro will apply to all future buttons?
|
|
|
|
|
Im working in a dialog based MFC application in visual studio. And i need some way to check to see if the main window is maximized, filling the whole screen or restored, like a normal window.
Is there some way i can like a if (Window.Restored == 1) etc?
P.S. Im used to working in visual studio 6.0, but sometimes i work in .NET 2003, when in .NET 2003 how do i like open the wizard thingy, where i can like add events (like PreTranslateMessage etc)
thanks!!
//Johannes
|
|
|
|
|
if (IsIconic(hwnd))
{
}
else if (IsZoomed(hwnd))
{
}
else
{
}
|
|
|
|
|
Try using
BOOL GetWindowPlacement(<br />
HWND hWnd,
WINDOWPLACEMENT *lpwndpl
);<br /> .
Regards,
Paresh.
|
|
|
|
|
Thanks Hans and Paresh, i belive this has solved my problem (not sure yet, my program is kinda complicated )
Thanks!
//Johannes
|
|
|
|
|
Hi all,
I have made a SDI application. I have written a function on toolbar button. Now what i want to know is after it finishes executing that function where the control passes to as i m geting a abort error after i finshes up my code in that function.
can anybody help me in this
thanks in advance
|
|
|
|
|
It will go in run loop (for new msg)
what you are doing in your function.
|
|
|
|
|
The control will end up back in CWinApps message loop.
Have you tried putting a break point near the end of your function, and see exactly where the fault occurs?
*What* is the error?
One fault I had with message functions is getting the parameters wrong, and this gave me no error in debug, and a stack over flow error in release builds.
If you use ON_COMMAND, then make sure your command handler is:
void OnMyButtonPressed ();
otherwise you can have problems.
Iain.
|
|
|
|
|
Hi
I am making an application in vc++ (a modal dilog based app...)
but in my form focus is not set by enter key.
I am using tab key for moving focus from one edit box to another.
can any one tell be how to set the focus by enter key. So when we press
enter key focus move to another object automatically
Regard's
Kaushik
|
|
|
|
|
Do you understand that this is not compatible with how Windows programs work in general? The Enter key is not a navigation key - it is a selection key, which (on a dialog) will result in the automatic selection of the default button (usually the OK button).
Doing this will be very confusing to your users. Microsoft has detailed guidelines specified for the Windows user interface - see MSDN for more details.
Here is link for PDF download: ux guide.pdf.
|
|
|
|
|
Hello..
This is very simple question but i dont know how to solve it.I am just beginner in this field so please help me.
In my application..I want some input(binary)..
like..
Enter Input Value:<br />
<br />
SEL Cx0 XOR D1<br />
1 1 0 1
Here how i can enter 1101 so it will automatically enter Tab button??ie after entering 1(input for SEL),next cursor will be at Cx0( after 8 tab from SEl) and same way for all other input.
Second question is..How can i enter input as a only "Single char"..ie after entering single char(for exam.. 1) then next cursor point will be at Cx0 input point..
Thanks
-- modified at 4:04 Monday 11th June, 2007
|
|
|
|