Click here to Skip to main content
15,904,416 members
Home / Discussions / COM
   

COM

 
Generalenum in COM Pin
Logan from Singapore26-Jun-05 22:31
Logan from Singapore26-Jun-05 22:31 
GeneralRe: enum in COM Pin
GuimaSun27-Jun-05 5:42
GuimaSun27-Jun-05 5:42 
GeneralInternet Explorer hooks Pin
Ryan333326-Jun-05 9:52
Ryan333326-Jun-05 9:52 
GeneralWebBrowser Control used as a FileManager Pin
intripoon26-Jun-05 8:39
intripoon26-Jun-05 8:39 
GeneralRe: WebBrowser Control used as a FileManager Pin
intripoon27-Jun-05 5:43
intripoon27-Jun-05 5:43 
GeneralShell extension. Pin
Member 134788323-Jun-05 15:30
Member 134788323-Jun-05 15:30 
GeneralRe: Shell extension. Pin
chenfred29-Jun-05 5:22
chenfred29-Jun-05 5:22 
GeneralTimer with Windowless Control Pin
Shraddhan23-Jun-05 12:42
Shraddhan23-Jun-05 12:42 
Sigh | :sigh: I have a windowless control for which I need a timer to reset an internal state after a short delay, for highlighting purposes.

I have been led to believe that all I need to do is to use a hidden window to handle SetTimer and KillTimer.

Yet all my attempts to create a hidden window have failed. It seems that I can't register my own window class, because Create fails. (This approach worked fine until I specified a variable to refer to the control in C++ code.) So I tried using a predefined class, CButton. This can't be created when the control is used from VBasic, as CWin::Create needs to know have an application instance, but VBasic supplies this as NULL.

I have found code using ATL which would seem to work, but I am using MFC and can't figure out how the ATL code can be translated.

Is there any practical way to use a timer in a windowless control? Or do I really have to specify a window for the control just for the sake of a timer?


Shraddhan

Tearing my hair out does not help me write better code, but it does ease the pain...
GeneralRe: Timer with Windowless Control Pin
Jörgen Sigvardsson26-Jun-05 6:04
Jörgen Sigvardsson26-Jun-05 6:04 
GeneralRe: Timer with Windowless Control Pin
Shraddhan26-Jun-05 12:57
Shraddhan26-Jun-05 12:57 
GeneralRe: Timer with Windowless Control Pin
Jörgen Sigvardsson27-Jun-05 10:18
Jörgen Sigvardsson27-Jun-05 10:18 
Generalchar** to VARIANT Pin
bvais23-Jun-05 11:01
sussbvais23-Jun-05 11:01 
GeneralRe: char** to VARIANT Pin
Lim Bio Liong23-Jun-05 15:12
Lim Bio Liong23-Jun-05 15:12 
GeneralRe: char** to VARIANT Pin
bvais23-Jun-05 18:23
sussbvais23-Jun-05 18:23 
GeneralRe: char** to VARIANT Pin
GuimaSun24-Jun-05 9:26
GuimaSun24-Jun-05 9:26 
GeneralRe: char** to VARIANT Pin
Lim Bio Liong24-Jun-05 23:54
Lim Bio Liong24-Jun-05 23:54 
GeneralRe: char** to VARIANT Pin
Jörgen Sigvardsson25-Jun-05 13:44
Jörgen Sigvardsson25-Jun-05 13:44 
GeneralRe: char** to VARIANT Pin
Lim Bio Liong25-Jun-05 19:39
Lim Bio Liong25-Jun-05 19:39 
GeneralVARIANT in VC 6.0 and Objects in C# Pin
btanveer23-Jun-05 6:09
btanveer23-Jun-05 6:09 
QuestionHow I can debug a dll file Pin
Anonymous22-Jun-05 23:37
Anonymous22-Jun-05 23:37 
AnswerRe: How I can debug a dll file Pin
ameysp23-Jun-05 23:56
ameysp23-Jun-05 23:56 
Generalcreating instance of an object Pin
pardis21-Jun-05 21:22
pardis21-Jun-05 21:22 
GeneralObtaining currently active IE window using IShellWindows Pin
VV114420-Jun-05 11:15
VV114420-Jun-05 11:15 
GeneralRe: Obtaining currently active IE window using IShellWindows Pin
GuimaSun23-Jun-05 10:30
GuimaSun23-Jun-05 10:30 
Generalsending data to dialog Pin
pardis17-Jun-05 20:19
pardis17-Jun-05 20:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.