Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I check whether the folder is exist or not? Pin
nachilau8-Sep-03 17:30
nachilau8-Sep-03 17:30 
AnswerRe: How can I check whether the folder is exist or not? Pin
csk8-Sep-03 18:29
csk8-Sep-03 18:29 
AnswerRe: How can I check whether the folder is exist or not? Pin
Hydralisk8-Sep-03 19:56
Hydralisk8-Sep-03 19:56 
AnswerRe: How can I check whether the folder is exist or not? Pin
David Crow9-Sep-03 2:31
David Crow9-Sep-03 2:31 
Questionanybody can tell me? Pin
china_nn8-Sep-03 17:27
china_nn8-Sep-03 17:27 
AnswerRe: anybody can tell me? Pin
David Crow9-Sep-03 2:35
David Crow9-Sep-03 2:35 
Questionhow to synchronize the input of two windows Pin
gucy8-Sep-03 16:32
gucy8-Sep-03 16:32 
AnswerRe: how to synchronize the input of two windows Pin
Fahr8-Sep-03 21:57
Fahr8-Sep-03 21:57 
What about using some API calls to find the hWnd of the textbox in Window2. Take a look at:
- FindWindow
- GetDlgItem

Use it somewhat as follows:

HWND hMainWindow = FindWindow("[ClassName of main window]", NULL);
if(hMainWindow != NULL)
{
HWND hTextbox = GetDlgItem(hMainWindow, [ID of the textbox]);
...
}

You can find out the classname of the main window and the ID of the textbox using Greatis Windowse (google on it, I don't have the link just like that).
Once you figured out the hWnd of the textbox, you can use SetWindowText or a SendMessage WM_SETTEXT to put the text in the box in dialog 2.

Another option might be SetDlgItemText, but then you can't check the hTextBox hWnd to be valid or not before sending.

Good luck!
- Fahr
Questionhow to synchronize the input of two windows Pin
gucy8-Sep-03 16:31
gucy8-Sep-03 16:31 
QuestionHow does Hare defrag the Memory? Pin
EastDragon8-Sep-03 15:05
EastDragon8-Sep-03 15:05 
AnswerRe: How does Hare defrag the Memory? Pin
Claudius Mokler9-Sep-03 1:50
Claudius Mokler9-Sep-03 1:50 
GeneralRe: How does Hare defrag the Memory? Pin
EastDragon9-Sep-03 15:04
EastDragon9-Sep-03 15:04 
GeneralRe: How does Hare defrag the Memory? Pin
geo_m9-Sep-03 21:51
geo_m9-Sep-03 21:51 
GeneralDialog OnPaint flicker Pin
JWood8-Sep-03 13:30
JWood8-Sep-03 13:30 
GeneralRe: Dialog OnPaint flicker Pin
John M. Drescher8-Sep-03 18:28
John M. Drescher8-Sep-03 18:28 
GeneralRe: Dialog OnPaint flicker Pin
JWood9-Sep-03 3:41
JWood9-Sep-03 3:41 
GeneralRe: Dialog OnPaint flicker Pin
John M. Drescher9-Sep-03 3:56
John M. Drescher9-Sep-03 3:56 
Generaldialog scroll bars Pin
Marissa1828-Sep-03 13:07
Marissa1828-Sep-03 13:07 
GeneralOnEndlabeleditTree () Pin
Binayak8-Sep-03 12:06
Binayak8-Sep-03 12:06 
GeneralRe: OnEndlabeleditTree () Pin
Phil Hamer8-Sep-03 14:59
Phil Hamer8-Sep-03 14:59 
GeneralExcel automation Pin
act_x8-Sep-03 11:34
act_x8-Sep-03 11:34 
GeneralRe: Excel automation Pin
Steve S8-Sep-03 22:15
Steve S8-Sep-03 22:15 
Generaldodgy communication is back Pin
godbert8-Sep-03 11:17
godbert8-Sep-03 11:17 
GeneralDeveloping software for Win2k+ Pin
John M. Drescher8-Sep-03 11:11
John M. Drescher8-Sep-03 11:11 
GeneralRe: Developing software for Win2k+ Pin
valikac8-Sep-03 12:34
valikac8-Sep-03 12:34 

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.