|
Actually the messges of my buttons in my Dialog Bars works fine...even if the dialog bar is docked or floating but the messges of the Frame Controls in the Dialog Bar doesn't....
How do I forward messages to my FrameWIndow??
|
|
|
|
|
Sorry, i'm misunderstanding you. Do you mean the controls on the frame, like the close or maximize buttons, or do you mean a STATIC control drawing an etched frame w/ in the dialog bar?
And if words were wisdom, I'd be talking even more. The Offspring, I Choose
|
|
|
|
|
I mean the Static Control drawing an etched frame within the dialog bar.... when you make a dialog resource, VS has toolbars that lets you draw any kinds of controls in the dialog resource.... The toolbar button that says picture control....
|
|
|
|
|
Ok, i understand now. These controls are usually not used for input, so i was confused. Anyway, make sure that SS_NOTIFY is set; you'll then get messages when the user clicks or double-clicks on the control. Not too much else you can do with a frame, really.
Sometimes I only remember, The days when i was young Nowadays no one remembers when they were young and stupid... ADEMA, The Way You Like It
|
|
|
|
|
OK... how do I use SS_NOTIFY??... i just encountered SS_NOTIFY?? sorry, i'm a bit new VC....
I'm using it for output and Feedback...... so i need to draw to the frame control manually through code....
|
|
|
|
|
In the dialog editor, bring up properties for the frame. On one of the pages (i forget which) there is a "notify" option.
Sometimes I only remember, The days when i was young Nowadays no one remembers when they were young and stupid... ADEMA, The Way You Like It
|
|
|
|
|
Thats it!! THanks a lot... I got it to work already... thanks very much...
"Its all right. the gun isn't loaded."
|
|
|
|
|
For your information, I made a DialogBar resource template... set the DialogBar's ID, the the button control's ID, and the frame control's ID, after that I go to ClassWizard, and asks me if i want to make a new class or select from an existing class.... I chose cancel and go thruh classwizard anyway.... i don't make a new class...
I get my messages thru the ID's.....
|
|
|
|
|
If you look in CodeGuru (sorry..) you'll find a dicussion of a "CInitDialogBar" class which solves just this sort of problem...
Cheers,
Dave Carkeet.
|
|
|
|
|
Greetings,
I was wondering if anyone knows how I can STREAM an image (.jpg, gif, ect) into an html page, or even Use Media Player?
Is it possible to stream an image into media player on a web page?
Thanks in advance
|
|
|
|
|
What you mean to "stream" image? Where you want to stream it from?
If I understand you right, you want to catch the browser request and stream the image data from memory, right?
Is so, you need to catch the http protocol request, check for the file name and if it yours, load the image to memory and return to browser. This thingy called Asynchonous Pluggable Protocol. You can read about it here
If not, skip my reply
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
Yup, you read what I was hoping to do correctly...
Thanks for the link!!!
|
|
|
|
|
Ah, I got it right
BTW, I'm writing an article about that, lmao, when I'll get a time to make a demo application, I'll post it
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
An article would be great!
Since I am still having trouble getting it to work!
|
|
|
|
|
Mmmm... not sure I will make it soon. Have no time
If you want I can send you my abandoned project which utilizes this feature. It was so-called WinHTML. It allows you to "build" HTML pages along with graphics, stylesheets, whatever inside single executable, which you can run and you will get HTML interface
It was really nice project, but client cancelled it
Oh and you will need BCGControlBar in order to compile it
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Yeah, if isn't too much trouble I could use the code to reference.
Thanks, again for your help, too bad I couldn't email yah a beer for your trouble!
|
|
|
|
|
Ok, here you go.
The workspace cotains 2 project. The one you are interesing in called "standard" and the class is CWHEProtocol . It is the class that pushes (streams) all image data into browser.
The second project is actually the project itself, it doesn't do nothing with protocols, but maybe you will need something from it. Also you have to build them both if you want the first to work
And the second zip file is a compiled demo, with BCGControl dll included. You may need it if you can't compile by yourself (don't have BCG for example).
Source files - 180k
Compiled demo - 450k
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Thanks for the project and source code!
I like your editor design that you did in the project, easy to use!
|
|
|
|
|
I have used CScrollView as my view class and have used CScrollView::SetScrollSizes() to set the scrolling sizes. When i scroll the OpenGL viewport does not move with the scroll bars and when the viewport limit ends the white background comes instead of the black background that I have used in OpenGL. I have used gluOrtho2D(0.0, 639.0, 0.0, 479.0) in the CScrollView::OnSize() to set the orthognal projection and used SetScrollSizes(MM_TEXT, CSize(1024,1024)) in CScrollView::OnInitialUpdate(). How can i change the viewport or projection with respect to the scroll bars so that in a particular scrolling area the background remains black (as set for OpenGL drawings) and the images are scrolled perfectly.
|
|
|
|
|
Java applet is a program that can be embedded in a web page. Suppose there is an applet which plots graphs of various algebraic equations.
How can we achieve the same thing using .NET??? I mean what is the equivalent of Java applet in .NET world. How can we create a program using VC++.NET that plots algebraic expression, on a web-page. I know one equivalent, and that is ActiveX control. But i am asking that what is the alternative of such applets in .NET world.
Farkhanda
|
|
|
|
|
|
Is there a method to determine the creation date of the current application ( module ) that works across all the MS WIN32 OS's ( 95-98-NT 2000-ME XP) ?
Richard
If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man.
- Pudd'nhead Wilson's Calendar
|
|
|
|
|
I don't know if it helps you,you can write it in registery.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
There is a TimeDataStamp field in the IMAGE_FILE_HEADER if you want to traverse the PE file format of your executable. That field indicates when the linker created the actual executable.
There are a few good articles in MSDN by Matt Pietrek regarding a program called PEDUMP. You can use the code from PEDUMP in order to get to that field pretty easily.
|
|
|
|
|
Hi there,
I was just wondering how you could find and highlight a text in a CScrollView based view? In the past I had done some text searching in a Edit box, but I am not too sure how you do the same when you have a view? For instance, if I cast my view to an edit control, it does find the text I am searching for, but then how do I go about highlighting it?
|
|
|
|