|
This seems like a difficult subject. If you were to compare images on a bit / byte level they could look somewhat different, even though they visually look the same. I guess there are a lot of mathematics involved.
I don't know of any web sites though I suppose you could try google if you have not done so already.
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 Walliams (Little Britain)
|
|
|
|
|
Hello, I was wondering if there is anyway possible of creating a fancy File Edit menu, like Office 2003 using just regular Windows APIs and NO MFC! I personally do not like MFC, I don't like Microsoft, so I was wondering if anybody could point me in the right direction with my problem
-Ryan M.
|
|
|
|
|
Ryan McDermott wrote:
I don't like Microsoft
OK, then why create an Office-2003 like menu?
Seriously though, imho you're much better off using MFC. See this[^] article for a very helpful set of classes.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
OK thanks, I have tried MFC many times but I still can not grasp it. I heard that microsoft doesn't even use MFC they just push it on other people. I have been doing C++ for more than 2 years, I have done 50+ projects but 0 MFC projects. I understand the object oriented concepts extremely well but half that crap code doesn't even look like C++. I want an alternative to MFC. Is there any?
-Ryan M.
|
|
|
|
|
Ryan McDermott wrote:
I heard that microsoft doesn't even use MFC
What's your source? Whoever it is, they're dead wrong since the VC 6 IDE is an MFC app.
Anyhoo, I know MSDN has a sample that shows how to make a toolbar that looks/acts like a menu.
Ryan McDermott wrote:
I want an alternative to MFC. Is there any?
WTL[^]
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
|
|
|
|
|
Thanks Michael you're a god I guess I will try MFC. I always though the Visual Studio IDE just used regular windows APIs. My Dad's friend that works for IBM, has a few friends at microsoft and that's who told me about Microsoft and MFC.
-Ryan M.
|
|
|
|
|
Ryan McDermott wrote:
My Dad's friend that works for IBM, has a few friends at microsoft
They didn't fire him for that ? :P
He may have been thinking of apps like Word, which predate MFC, and I believe continue not to use it. The reason is the cost of a rewrite, not any problem with MFC itself.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
OK I have always assumed that. I might open up Word or Visual studio in a hex editor and take a look at what DLLs they are linked to
Does anybody have any tutorials on MFC? I would appreciate it.
-Ryan M.
|
|
|
|
|
Ryan McDermott wrote:
Does anybody have any tutorials on MFC? I would appreciate it.
I hear there's a cool site called CodeProject with heaps of MFC articles on it.....
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
ok ok, very cocky now. I have read many a article here at codeproject and I can't really understand all the MFC headers and all those weird APIs. Everything in MFC is so sloppy and I thought it was designed so you can be more productive. Quite the contrary, you write endless lines of classes and macros and where does it getcha? Half of what I say is probably wrong and you all might contradict me but I just am not all that fond of much Microsoft stuff.
-Ryan M.
|
|
|
|
|
|
Ryan McDermott wrote:
Everything in MFC is so sloppy
MFC is an attempt to OO Win32. It's not perfect, by any means. Your best bet is to work your way through some examples, and learn a bit at a time.
Ryan McDermott wrote:
you write endless lines of classes and macros
You shouldn't have to write any macros. Macros are evil. I don't think you need to write endless classes either. Have you done any Win32 ? It's a lot more verbose.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Try wtl. Lots of templates in there though that you might not like the look of.
50+ projects in 2 years eh?
|
|
|
|
|
Yes 50+ I did mainly small apps like a Splash Screen class, a Remote administration server, basic FTP client. Anyway, I found an interesting book on MFC online that I will order.
-Ryan M.
|
|
|
|
|
Have you checked WTL? It is generally considered a good alternative to MFC. Much less crap, smaller binaries. There are also a lot of ready-to-use classes, including menu (check CP's wtl part)
Igor Green
http://www.grigsoft.com
Compare It! + Synchronize It! : Files and folders comparison never was easier!
|
|
|
|
|
Hey every one...
I have read and tested some stuff with "SetWindowText"
and when i use SetWindowText i can change the caption of my appelcation, but I think it is possible to change window's caption of other programs....
i am not sure if it is SetWindowText(hWnd,"My Text");
but i used it and it gave me an eroor... so any help?
thanks alot
I am still a beginner
|
|
|
|
|
Hi.
you can use
Findwindow(wndclass,wndtetxt) API function to retrive the
hwnd for any window, and then you can use
SetWindowText function.
.
if you need some help contact me on faroq_tam2004@yahoo
On Earth nothing impossible,
while your mind running.
Faroqtam
|
|
|
|
|
Dody_DK wrote:
...but i used it and it gave me an eroor...
My telepathy powers are weak today. Can you tell us what the error is?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
It will give me this error
error C2065: 'hWnd' : undeclared identifier
hope you can help...
|
|
|
|
|
From where and how are you calling SetWindowText() ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I creat a button, and from the classwizard I chose BN_Clicked and I add function. then I click edit code and write SetWindowText(hWnd,"My Text");... so it will be
void CAdfadfhgDlg::OnButton1()
{
SetWindowText(hWnd,"My Text");
}
I think i am doing something wrong... right?
|
|
|
|
|
Dody_DK wrote:
I think i am doing something wrong... right?
Right, you are doing something wrong. Simply remove the hWnd parameter. It's not needed since you are already in the context of the dialog. That will fix that particular compiler error.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Yeah I did that also, but this will change my applecation's Caption not the other applecation's caption... and this is what I want to change the Window title of other applecation....
is it possible?
|
|
|
|
|
Dody_DK wrote:
is it possible?
Yes, just call FindWindow() as has already been mentioned.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I did that also, but the same problem, only my applecation's caption will be changed, not others...
void CAdfadfhgDlg::OnButton1()
{
HWND hwnd = ::FindWindow(NULL, "Title of program");
if (hwnd)
{
::ShowWindow(hwnd, SW_SHOWDEFAULT);
::BringWindowToTop(hwnd);
SetWindowText(hWnd,"My Text");
}
hmm is there any thing wrong i am doing?
thanks alot
|
|
|
|