|
I use this code to chane the caption of my frame in my formview class in OnInitUpdate:
CMainFrame * pWnd = (CMainFrame *) (AfxGetMainWnd());
ASSERT_VALID(pWnd);
pWnd->SetWindowText(str);
But nothing change in title of maniframe!
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
|
Thanks Nish.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
I implement a trick in font building. in font creator, i create several chars which is of 0 advance width, which mean when it write in front of a char(for example 'O'), it may have decorative effect (for example 'ó'). This will stop a combination explosion by make new char to add dot on ABCDEFG... Only a front decorative and a normal char is ok.
in WORD, it works very well. But i find a bug in richedit(i am not sure where it is really a bug). in richedit control (or wordpad in every windows system with richedit control as a core), the is still a little advance gap on a zero width char. because of this, i can't match the decorator and the base char. i wonder whether a setting to stop the automation advance?
I have some examples font and docs, if you wanna a test please contact me. My mail is novalet@yahoo.com.cn
|
|
|
|
|
hi all,
can u pls help me..i got the handle of the parent window.but i am not getting the handle of the child window.i think the problem is in the window caption.the child window doesn't have any caption.i am using FindWindowEx()..
I tried with both NULL and "" ..but i am not getting..do help me..
|
|
|
|
|
|
I want to find the difference betweeen system time and file last modified time.so iam using these APIs but these functions are not working on win98. i want to know wheather these api will work in win98
FILETIME FileUTCTime;
SYSTEMTIME SysLocalTime,SysUTCTime,FiSyLocalTime;
FileTimeToLocalFileTime(&fadSrc.ftLastWriteTime,&FileUTCTime);
FileTimeToSystemTime(&FileUTCTime,&FiSyLocalTime);
GetSystemTime(&SysUTCTime);
SystemTimeToTzSpecificLocalTime(NULL,&SysUTCTime,&SysLocalTime);
|
|
|
|
|
The only function that will not work that you have listed is:
SystemTimeToTzSpecificLocalTime
This function is simply not supported under any of the win9x operating systems.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
|
does anyone here know how to set the compiler optimization mode to "default" for a single file? i'd prefer to do it with a pragma.
VC6
-c
As always, it's bread and circuses. And while bread is down right now, circuses are way up.
|
|
|
|
|
i found it - and i found yet another bug in MS's "Minimize Size" optimization setting.
in this case, i was throwing an exception derived from std::exception (on purpose). but, it was crashing in the _CxxThrowException code (the stuff between the "throw" and the "catch".
it worked fine in debug. it worked fine in debug with BoundsChecker. it worked fine in release mode, if built with debug info, but crashed in plain release mode. turning off optimizations in the module with the *catch* fixed the problem.
yuck!
As always, it's bread and circuses. And while bread is down right now, circuses are way up.
|
|
|
|
|
Hi,
In a dialog based application, i have a menu and a toolbar.
It is easy for making the toolbar button for each single menu
item. But i'm lost in trying to make a toolbar button for a menu
item which has a number of sub menu items.
How to do this?
Thanks in advance!
chen
|
|
|
|
|
In my application, I've to let my client to design a menu and the conrol layout. Does anyone know any sample code ?
|
|
|
|
|
What is the best way to use XML in C++ 6.0? DOM or SAX, wich is the easiest and efficient way to read and write data.
examples and comments welcome
thanks
|
|
|
|
|
The DOM works well for small files, SAX for larger ones.
Jason Henderson start page articles "If you are going through hell, keep going." - Sir Winston Churchill
|
|
|
|
|
One more thing to consider with the DOM versus SAX,
The DOM creates persistant data for your XML. It will read the data in and create an internal structure that you can refer back to whenever you need to read from a certain node.
The SAX on the other hand is a one pass mechanism, where you will use the APIs to read and write the data. The data is not persistant in the SAX API so once it has been read, it is forgotten and you are responsible for persiting the data in your app.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
The downside with SAX is that you almost inevitably end up writing FSA style stuff to deal with the incoming data, and there's no support for navigating the document as in DOM.
While writing a state machine isn't exactly rocket science, if you have never done it before there are many things to watch out for.
Steve S
[This signature space available for rent]
|
|
|
|
|
How to send a message from a parent window to child window...can i use post message for this...but i don't know how to select the the parameter UINT for the post message..can i use WM_USER..what is its format if i want to send a
string value?
|
|
|
|
|
You can send a message to any window as long as you have the handle to the window and there is a message handler to catch the message in the receiving window.
Anonymous wrote:
but i don't know how to select the the parameter UINT for the post message..can i use WM_USER..what is its format if i want to send a
string value?
I assume you want to send a custom message...
Use WM_USER to create the message id. Then you can send 0 or whatever as the uiParam and send a pointer to the string (LPCSTR works) as the lParam. You will have to cast it back to a string in the message handler.
Jason Henderson start page articles "If you are going through hell, keep going." - Sir Winston Churchill
|
|
|
|
|
There's a catch with sending strings, though. If you use PostMessage, there's no guarantee that your message will be processed at a particular time (like, before PostMessage returns).
So code like
{
char x[128];
SetupMyString(x);
PostMessage(otherWindow, WM_USER, 0, (LPARAM)x);
}
may well die a horrible death. If you need to do this, you either need a longer lived string, or alternatively, you could allocate, and have the receiver deallocate, but that relies on you having the source for the receiver to modify it in this way.
Steve S
[This signature space available for rent]
|
|
|
|
|
Hi all,
How can i get the name of server to which my PC is connected through software?.
With regards
Shibu
|
|
|
|
|
LookUpAccountName
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
|
I want to put a version of my app on my website that will allow someone to install and use the app on their machine for a limited time for evaluation purposes. Has anyone had any dealings with this and if so, how would I go about doing that?
|
|
|
|
|
Personally, I hid a file amongst the system directory, and used it in conjuction with a registry entry to fail after a month, and to fail if anyone tried to play with the registry or reset their system clock.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|