|
When explorer restarts it broadcasts a registered message "TaskbarCreated". You can process this message to redisplay your icon.
Regards
Phil
|
|
|
|
|
Hi,
Phil
Can u please elaborate on that.. what kind of message
is sent etc..
Sameer
|
|
|
|
|
The message is only sent if the system in question has IE4 or later.
As I said, it's a registered message. You get its message number like this...
const UINT wm_TaskbarCreated = RegisterWindowMessage(_T("TaskbarCreated"));
Then, in the WindowProc of the top-level frame window of your app. do something like this...
if (nMsg == wm_TaskbarCreated)
m_pTrayIcon->ReloadTheIcon();
A better way would be for your tray icon class to hook the WindowProc and be responsible for reloading itself. That avoids having to inject a chunk of code into an entirely unrelated class. Unfortunately I don't have time to explain all about that...
Hope this helps,
Phil
|
|
|
|
|
Here is the article for people who have the same problem in
future
Regards
Sameer
|
|
|
|
|
Hi All,
How to resolve ip address to hostname in WIN32? for example, given ip address 204.127.222.1, find the hostname (say, MYDOG ).
Thanks.
|
|
|
|
|
Use Winsock function gethostbyaddr . If you're not used to this library, remember you have to initialzie it before attempting to use it (have a look at WSAStartup .)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
what are breakpoint and how are they use in vc++ 6.0.
karanba
|
|
|
|
|
Breakpoints are only used when debugging (F5 instead of Ctrl-F5). Place a breakpoint on the line where you want the execution to stop break (right-click->Add breakpoint), press F5, and when the breakpoint is reached use F5 (resume), F10 (step over), F11 (step into) and so on. All command can be found in the debug window.
/moliate
|
|
|
|
|
As title.
I'm amumu, and you?
|
|
|
|
|
Yes.. ofcourse..
you can try Bison for windows..
Sameer
|
|
|
|
|
|
Hi,
I am practice RTTI excerices and encounter such a debug result.
struct NCL_Runtime CVehicle::structCVehicle=
{szCVehicle, sizeof(CVehicle), 0xffff, NULL, NULL};
debug result is
J:\pearl\Sim02\Vehicle.cpp(16) : error C2065: 'NULL' : undeclared identifier
Plz tell me WHY??????
Best regard.
I confess that I am a stubborn guy, but why not put things thoroughly, logically and systematically clean. One concrete prolem is worth a thousand unapplied abstractions.
|
|
|
|
|
NULL is not a C++ keyword, but rather a macro defined in a lot of usual headers, like <stdlib.h> or <windows.h> . In your case, none of these headers happens to be included. You can safely replace NULL with 0 .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Oye Joaquin no paras tio !, estás hecho un máquina ...
Me parece que Chris debería de darte una camiseta de codeproject por la colaboración que haces...
Un saludo
Braulio
|
|
|
|
|
Hola Braulio.
No te creas que estoy todo el día aquí, tan sólo que cuando tengo algún ratito me divierto más contestando a la gente que navegando por playboy.com Un saludo.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
tsk tsk tsk
u so bored that you do that???
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|
|
u so bored that you do that???
As you seem to do as well, I guess
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Y yo? Necisito camisas tambien
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Coño !, más gente q habla español !, divertido
Vamos a hacer unas lista de camisetas para Chris
Un saludo
Braulio
|
|
|
|
|
Para mi la unica gente que deben recibir camisas son la gente que escribe libros o son amigos de la gente que escriben libros
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Todos somos buenos amigos de la gente que escribe buenos libros
Una pregunta, por curiosidad, ( la escribo en español, pero si no la entiendes te la escribo despues en inglés). Es muy duro escribir un libro ?, Me refiero a si es una tarea a la que te tienes que dedicar 100 %.
Como funciona ese mundo ? ( yo creo que nunca me atreveré a escribir un libro, pero tengo curiosidad por saber como es).
Un saludo !
Braulio
Inside Málaga# Sunny Beach
|
|
|
|
|
Braulio Díez wrote:
Todos somos buenos amigos de la gente que escribe buenos libros
Oh si, claro! Ahora! Pero que paso en escuela?
Braulio Díez wrote:
Es muy duro escribir un libro ?, Me refiero a si es una tarea a la que te tienes que dedicar 100 %.
Cono mijo. No puedes imaginar. Es ridiculo a veces. La cosa es que los publisher no quieren intender que muchas veces estamas escribiendo en algo que esta in beta y no funciona bien. Tampoco no tiene instrucciones ni nada. Pero ellos todavia esperan que nosotros comple con las fechas. Muchas veces el resultado es que tenemos que avanzar y terminar algo que sabemos no es nuestro mejor trabajo. En terminos de horas, si toma un monton de tiempo escribir un libro y los publisher actua como el libro es tu unico trabajo cuando normalmente es algo que hacemos en la noche. Te digo, no es un trabajo facil. Pero la cosa es que me gusta ayudar a la gente y en eso recibo me pago.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
|
You're probably going to want to look at property sheets.
- Jason
(SonorkID 100.611)
"The sort of guy who'd give the kid an extra scoop of ice cream free if he was an ice-cream man"
- Nish, on Chris Maunder
|
|
|
|
|
Using the tab you can switch to the next control. In my apps, the control I've dragged first on the dialog is first on focus and so on for the others...
How can I change this order without having to change the focus manualy through the code?
Bluute tette!
|
|
|
|