Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCP/IP Socket programming Pin
Gerry18-May-01 2:45
Gerry18-May-01 2:45 
GeneralRe: TCP/IP Socket programming Pin
markkuk20-May-01 21:06
markkuk20-May-01 21:06 
QuestionCPrintDialog::GetDefaults() doesn't work? Pin
Joep18-May-01 1:31
Joep18-May-01 1:31 
AnswerRe: CPrintDialog::GetDefaults() doesn't work? Pin
Gerry18-May-01 3:21
Gerry18-May-01 3:21 
GeneralUnsing STL in cunjunction with MFC Pin
18-May-01 1:19
suss18-May-01 1:19 
GeneralRe: Unsing STL in cunjunction with MFC Pin
James R. Twine18-May-01 2:57
James R. Twine18-May-01 2:57 
QuestionQuestion on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 1:01
suss18-May-01 1:01 
QuestionQuestion on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 1:01
suss18-May-01 1:01 
I'm facing smiliar problem which related to WM_COPYDATA. Is it possible help me to solve that, anyway, thanks first.

May I ask if I want to pass a bitmap handle (HBITMAP) from a source window to a destination window such that I can display the bitmap in the destination window. How can I deal with that?

My code to SendMessage as follows:

COPYDATASTRUCT dataStruct;
HWND rhwnd; // receiving window handle
HWND shwnd; // sending window handle

// am I wrong in below? Pls point out

dataStruct.dwData=1;
dataStruct.cbData=sizeof(HBITMAP);
dataStruct.lpData=hBitmap;

if (!(rhwnd=::FindWindow(NULL,"Message2")))
AfxMessageBox("Can't find window",MB_OK,0);
else
{
shwnd = (HWND) (this);
::SendMessage(rhwnd,WM_COPYDATA,(WPARAM) shwnd,(LPARAM) &dataStruct);
}


Thank you very much if you can help me.
AnswerRe: Question on pass HBITMAP using WM_COPYDATA? Pin
#realJSOP18-May-01 2:48
professional#realJSOP18-May-01 2:48 
GeneralRe: Question on pass HBITMAP using WM_COPYDATA? Pin
18-May-01 20:49
suss18-May-01 20:49 
GeneralMFC SplitterBar *** SDI without Document/View Architecture *** Pin
Hubbard18-May-01 0:50
Hubbard18-May-01 0:50 
GeneralChild window resizing problem!! Pin
17-May-01 23:22
suss17-May-01 23:22 
GeneralRe: Child window resizing problem!! Pin
Tomasz Sowinski18-May-01 0:23
Tomasz Sowinski18-May-01 0:23 
GeneralRe: Child window resizing problem!! Pin
18-May-01 0:35
suss18-May-01 0:35 
GeneralRe: Child window resizing problem!! Pin
Tomasz Sowinski18-May-01 0:43
Tomasz Sowinski18-May-01 0:43 
QuestionHow is it possible to access to global variable in project ? Pin
17-May-01 22:34
suss17-May-01 22:34 
AnswerRe: How is it possible to access to global variable in project ? Pin
17-May-01 22:39
suss17-May-01 22:39 
AnswerRe: How is it possible to access to global variable in project ? Pin
18-May-01 4:13
suss18-May-01 4:13 
GeneralRe: How is it possible to access to global variable in project ? Pin
18-May-01 18:52
suss18-May-01 18:52 
GeneralRe: How is it possible to access to global variable in project ? Pin
18-May-01 20:18
suss18-May-01 20:18 
GeneralWhere is the CMainFrame in dialog project ??? Pin
19-May-01 11:27
suss19-May-01 11:27 
GeneralRe: Where is the CMainFrame in dialog project ??? Pin
Christian Graus19-May-01 13:04
protectorChristian Graus19-May-01 13:04 
GeneralRe: Where is the CMainFrame in dialog project ??? Pin
Christian Graus19-May-01 13:12
protectorChristian Graus19-May-01 13:12 
GeneralPlease !! HELP ME !! I Don't SUCCESS !!! ??? Pin
19-May-01 20:40
suss19-May-01 20:40 
GeneralRe: Please !! HELP ME !! I Don't SUCCESS !!! ??? Pin
Christian Graus19-May-01 21:59
protectorChristian Graus19-May-01 21:59 

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.