|
I have my own class derived from CToolbar, and I want it to look like it's docked ( no caption bar, gripper on the left ) when it is floating. Can anyone suggest how I might achieve this ?
Thanks
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hello Christian,
How are you!
I had this same thing in mind and I last tried it 2 weeks ago by overriding the default NC messages, but it seems it won't work! It actually works but the defualt stuff comes back!
I tried to programicly float the toolbar and it works inbetween here! it draws the whole window+caption with my gradient filling colors!
Also tried to get the menu to delete the Close & Move items, assertions occur (violations in the DeleteMenu(xxx) stuff!).
I wonder/interested if you tried and had any good result with this!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
No, I'm still in a hell of my own making. I wouldn't mind a look at your code - my email is cgraus@isw.net.au if you feel inclined. I have got the move/close items to go before, but to be honest, I've not had time to look at it for ages, I was just thinking about it again last night. Maybe if no-one else knows how to do it we could collaborate and produce an article on the subject ?
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi Christian!
I'd be happy to join forces with you!
I'll put together some clean code project (VC++6 SP3, Win98) and send you soon!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
I'm working with a wizard and I need to resize it, I have found the buttons ID's, but I can't find anywhere the ID of the separator (the line at the bottom that separates the wizard buttons of the "property pages").
Is there any way to find the ID's? now I'm cycling through the dialog and moving each window to see the results and to get the numerical ID.
Thank you very much.
|
|
|
|
|
Spy++ will show you window IDs (along with everything else about a window!)
--Mike--
http://home.inreach.com/mdunn/
Is history an illusion caused by the passage of time, or is time an illusion caused by the passage of history?
|
|
|
|
|
first of all thank you for reading this question.
the problem:
I'm developing an application that is intended to control a machine. In order to control the machine it use some files that the user writes a kind of programs.
There are some tasks that are easily done by the use of assistants, but now I only know two situations that would be better if It would be solutioned by assistants, but I'm sure that when the client have worked a little with the program he/she will ask for some expansion modules.
How could it be done? (an example would be great)
Thank you again.
|
|
|
|
|
This problem can be overcome by using the WHS.It enables powerful scripting using languages such as VB Script, Java Script, and Perl.
I suggest you take a look at IActiveScriptParse and IActiveScript or use a commercial library such as HyperHost or Hyper Studio, It is owned by Dundas Software.
G. Alfadhly
famous Last Words
"TRUCK!!!!!"
|
|
|
|
|
Hello,
Can anyone tell me how can I get the system date into my own field? What instruction shall i use?
You can e-mail me at pmfsilva@net.mailcom.pt or over here.
Thank you.
Have a nice year!
|
|
|
|
|
CTime time;
time = CTime::GetCurrentTime();
|
|
|
|
|
CTime time;
time = CTime::GetCurrentTime;
|
|
|
|
|
SYSTEMTIME st;
GetSystemTime(&st);
- Anders
|
|
|
|
|
I had a problem with the GetSystemTime() function. When it is 4:00 pm the date changes to the next day. So i was curious if this only happens for me.
Thanks
|
|
|
|
|
I have never seen that problem...
- Anders
|
|
|
|
|
Not sure that this applies, but it may shed some light on the matter.
GetSystemTime - returns Coordinated Universal Time.
GetLocalTime - returns the local time.
Chris
|
|
|
|
|
I have two program which access the same database file. Both program are always running. When one program makes a change to one or more of the records, the other program does not know and will access information that is not there.
|
|
|
|
|
Did you find the way to solve your problem i'm with the same problem in CRecordset and i can't find the way .... if you know how to solve this i would apritiate some help in it !
by the way : how do you show all record in a list and access the record on a double click (for instance) ?
|
|
|
|
|
did you find the answer for this ??? I'm trying to get to the same result and seems that i can't do it !
I would apritiate your help if you can,
Ariel.
|
|
|
|
|
Pardon me in advance if this turns out to be a dumb question.
When and how does an entry for a doc template resource id get created?
I assume for a single document in an MDI that it was built through the info given to AppWizard when gen'ing the initial file set. But specifically, I am puzzled by the VIEWEX sample's IDR_SPLIT3TYPE. How, where and when did its string get generated and its table entry made?
DUH in advance,
Tom
|
|
|
|
|
Hi:
I have loaded and displayed an image(in bitmap format)in a dialog box, how can I print the image,(it may be a general question if you think it takes a long answer please give a reference because all I found was printing Documents, ...
thank-you
|
|
|
|
|
There is an article on doing this at www.codeguru.com, that provides a framework for printing images from a non doc/view situation.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I started writting a sequencer-demo. And there is one thing I have to ask :
Does anybody know which timer is the better selection for exact timing ?
Is it SetTimer() in combination with WM_TIMER or is it timeSetEvent() in combination with a callback function ?
Or is there even a better way that I do not know yet ?
Thanks for answers and help ... Mario ///
P.S.: I do not use MFC !
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
SetTimer and WM_TIMER are very low resolution timers. They're never any faster than 55 milliseconds and can be as much as several hundred milliseconds.
timeSetEvent is a multimedia timer, and has much much better resolution, however you are still limited by a number of factors which make reliability of timers very poor in Windows.
|
|
|
|
|
Now I found another way to implement a timer by using this functions
CreateWaitableTimer()
OpenWaitableTimer()
SetWaitableTimer()
and so on ...
I read the resolution is about 100ns. Is that true ?
In a demo-app for this kind of timer they used a while(true) loop to await a timer-message. Is this the only way to handle this timer ? And what about deadlocks ?
Greatings Mario ///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
Hi,
I use Visual C++ 6.0 and i need help for the following problem.
In my App, i have two command button. The first button send some instructions
like this :
bool NoData=false;
while(1)
{
.....
OpenPort(PortId); // Open a port com ( for exemple com2)
WriteFile(.......); // Write to port com
.....
if(NoData)
{
ClosePort(PortId); //Close port com
break;
}
}
While my Button 1 send theses commands, i want to use button 2 to stop
this operation before Variable NoData is true.
To do this i try to close directly port com :
ClosePort(PortId); //Close port com
But it don't work, because i can press button 2 during this operation.
Is anybody can help me How can i use two threads to do this
Thanks in advance
|
|
|
|