Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Alternative for CMap in MFC Pin
Cedric Moonen12-Feb-09 20:19
Cedric Moonen12-Feb-09 20:19 
GeneralRe: Alternative for CMap in MFC Pin
Arman S.12-Feb-09 20:49
Arman S.12-Feb-09 20:49 
GeneralRe: Alternative for CMap in MFC Pin
Ramasani12-Feb-09 22:11
Ramasani12-Feb-09 22:11 
GeneralRe: Alternative for CMap in MFC Pin
Arman S.12-Feb-09 22:33
Arman S.12-Feb-09 22:33 
QuestionHow to get the available ports? Pin
AnithaSubramani12-Feb-09 18:15
AnithaSubramani12-Feb-09 18:15 
AnswerRe: How to get the available ports? Pin
SandipG 12-Feb-09 19:53
SandipG 12-Feb-09 19:53 
AnswerRe: How to get the available ports? Pin
David Crow13-Feb-09 3:03
David Crow13-Feb-09 3:03 
QuestionObtaining the HWND of a window Pin
hxhl9512-Feb-09 17:53
hxhl9512-Feb-09 17:53 
Hi all,

I am just curious to know if there is a way to find the HWND of a window, given no actual window title and no definitive process name. Although I could get a handle by using the process name, I'd rather not since users might rename the executable file to something else.

I am attempting to prevent two instances of one app from being run at once, so I stuck a mutex in. I want my app to send a message to the already running program and close. However, my app needs the HWND of the other running app to send a message to it with SendMessage. The problem is, my app does not have an actual "window", meaning that I can't get it's HWND with FindWindow. It's derived from CFrameWnd and doesn't show up in taskmgr (FindWindow).

Any suggestions on how to accomplish this? Thanks in advance Smile | :)
QuestionRe: Obtaining the HWND of a window Pin
«_Superman_»12-Feb-09 18:03
professional«_Superman_»12-Feb-09 18:03 
AnswerRe: Obtaining the HWND of a window Pin
hxhl9512-Feb-09 18:11
hxhl9512-Feb-09 18:11 
AnswerRe: Obtaining the HWND of a window Pin
SandipG 12-Feb-09 20:04
SandipG 12-Feb-09 20:04 
AnswerRe: Obtaining the HWND of a window Pin
Stuart Dootson12-Feb-09 21:59
professionalStuart Dootson12-Feb-09 21:59 
GeneralRe: Obtaining the HWND of a window Pin
hxhl9513-Feb-09 12:59
hxhl9513-Feb-09 12:59 
QuestionEM_REPLACESEL order of API's Pin
ForNow12-Feb-09 17:37
ForNow12-Feb-09 17:37 
QuestionC++ Logging: Any recommendations? Pin
gvanto12-Feb-09 16:36
gvanto12-Feb-09 16:36 
QuestionRe: C++ Logging: Any recommendations? Pin
David Crow13-Feb-09 3:11
David Crow13-Feb-09 3:11 
AnswerRe: C++ Logging: Any recommendations? Pin
gvanto13-Feb-09 19:09
gvanto13-Feb-09 19:09 
QuestionAn struct declared within another struct. Pin
Comp_Users12-Feb-09 15:16
Comp_Users12-Feb-09 15:16 
AnswerRe: An struct declared within another struct. Pin
Rick York12-Feb-09 18:12
mveRick York12-Feb-09 18:12 
GeneralRe: An struct declared within another struct. Pin
Comp_Users12-Feb-09 18:26
Comp_Users12-Feb-09 18:26 
GeneralRe: An struct declared within another struct. Pin
Arman S.12-Feb-09 20:39
Arman S.12-Feb-09 20:39 
GeneralRe: An struct declared within another struct. Pin
Cedric Moonen12-Feb-09 20:48
Cedric Moonen12-Feb-09 20:48 
GeneralRe: An struct declared within another struct. Pin
Arman S.12-Feb-09 20:53
Arman S.12-Feb-09 20:53 
GeneralRe: An struct declared within another struct. Pin
Cedric Moonen12-Feb-09 21:03
Cedric Moonen12-Feb-09 21:03 
AnswerRe: An struct declared within another struct. Pin
Cedric Moonen12-Feb-09 20:35
Cedric Moonen12-Feb-09 20:35 

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.