Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFinding the modem Pin
Y_R30-Jul-05 23:19
Y_R30-Jul-05 23:19 
GeneralRe: Finding the modem Pin
Abbas_Riazi31-Jul-05 1:18
professionalAbbas_Riazi31-Jul-05 1:18 
GeneralRe: Finding the modem Pin
Y_R31-Jul-05 10:32
Y_R31-Jul-05 10:32 
GeneralRe: Finding the modem Pin
Abbas_Riazi31-Jul-05 20:02
professionalAbbas_Riazi31-Jul-05 20:02 
GeneralEdit Control Pin
khlins30-Jul-05 22:13
khlins30-Jul-05 22:13 
GeneralRe: Edit Control Pin
vishalmore30-Jul-05 22:58
vishalmore30-Jul-05 22:58 
Questionshellexecute get handle ? Pin
vantran0430-Jul-05 16:16
vantran0430-Jul-05 16:16 
AnswerRe: shellexecute get handle ? Pin
vishalmore30-Jul-05 23:58
vishalmore30-Jul-05 23:58 
Hi,

You can get HWND for the application you are opening through "ShellExecute"
using following technique

Psedo code:

ShellExecute(GetDesktopWindow(), "open", "filename", "", "path", SW_SHOW)
EnumChildWindows(GetDesktopWindow(), CallBackChildWindows, lParam)
CallBackChildWindows(...)
{
int iRet;
//Get the class name of the window
iRet = GetClassName(hwnd,strClassName,..)
if(iRet!=0)
{
//You must be knowing the class name for the application, which you are
//opening through the SheeExecute. So match the class name here, once
//match the class name exit from this proc.
//arrStrClassNames would have all the class names
if(strClassName==arrStrClassNames[iIndex])
return false
else
return true
}
}

Still facing problems ? Cool | :cool:

Cheers,
Vishal

AnswerRe: shellexecute get handle ? Pin
ThatsAlok31-Jul-05 2:44
ThatsAlok31-Jul-05 2:44 
AnswerRe: shellexecute get handle ? Pin
Blake Miller1-Aug-05 7:54
Blake Miller1-Aug-05 7:54 
GeneralLinked list, passing a pointer Pin
bitsNbites30-Jul-05 15:49
bitsNbites30-Jul-05 15:49 
GeneralRe: Linked list, passing a pointer Pin
John M. Drescher30-Jul-05 18:04
John M. Drescher30-Jul-05 18:04 
GeneralRe: Linked list, passing a pointer Pin
S. Senthil Kumar31-Jul-05 4:20
S. Senthil Kumar31-Jul-05 4:20 
QuestionHow to manipulate ActiveDesktop buttons Pin
programvinod30-Jul-05 14:04
programvinod30-Jul-05 14:04 
GeneralDisabling Alt-Tab using RegsterHotkey for Windows 98 Pin
JP Manalo30-Jul-05 7:46
JP Manalo30-Jul-05 7:46 
GeneralRe: Disabling Alt-Tab using RegsterHotkey for Windows 98 Pin
Michael Dunn30-Jul-05 12:35
sitebuilderMichael Dunn30-Jul-05 12:35 
GeneralRe: Disabling Alt-Tab using RegsterHotkey for Windows 98 Pin
vishalmore30-Jul-05 23:01
vishalmore30-Jul-05 23:01 
GeneralControl Notification Messages be sent to a non-parent.. Pin
Maverick30-Jul-05 7:37
Maverick30-Jul-05 7:37 
GeneralWhy is a CButton disabled on CDialogBar Pin
laiju30-Jul-05 7:34
laiju30-Jul-05 7:34 
GeneralRe: Why is a CButton disabled on CDialogBar Pin
Maverick30-Jul-05 7:48
Maverick30-Jul-05 7:48 
GeneralDisable the horizontal scroll bar in list Pin
laiju30-Jul-05 6:45
laiju30-Jul-05 6:45 
GeneralHKEY to string Pin
Chintoo72330-Jul-05 3:47
Chintoo72330-Jul-05 3:47 
GeneralObtaining an Application's Folder Pin
rbrunton30-Jul-05 2:33
rbrunton30-Jul-05 2:33 
GeneralRe: Obtaining an Application's Folder Pin
Scozturk30-Jul-05 3:06
professionalScozturk30-Jul-05 3:06 
GeneralRe: Obtaining an Application's Folder Pin
Jack Puppy30-Jul-05 3:46
Jack Puppy30-Jul-05 3:46 

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.