随书类文件![随书类]MFC_SOURCEBOOK

源代码在线查看: read.cgi-read=10076.htm

软件大小: 14985 K
上传用户: flashlee2003200
关键词: MFC_SOURCEBOOK
下载地址: 免注册下载 普通下载 VIP

相关代码

				How can i get post message to the Main Window in an user-interface thread?
				
				   
												ALT="MFC Programmer's SourceBook" WIDTH="256" 
						HEIGHT="88">
												color="#a0a0ff">Discussion Board
						 
						   [ Read Responses | Post a New Response | Return to the Index ]
				Next in ThreadHow can i get post message to the Main Window in an user-interface thread?
				Posted by Chan Shi Wing on 4/22/98 6:13a.m.
				
				Hi! Everybody!
				I am a Visual C++ beginner and i want to know how to post a message to the 
				main window in an user-interface thread.  My application is a SDI application.
				I try to use the function of AfxGetMainWnd->GetSafeHnd() from the application
				c++ file and then pass this parameter to a member in the user-interface.But
				when i run the application and i find a Error message "unhandled exception
				in AV001.exe in 0xC00005 .Access Violation" .  Could anybody help me to solve
				this problem and tell me why this message happen?
				Thank you very much!
				
				Responses
				Re: How can i get post message to the Main Window in an user-interface thread? : Anish Dave -- 4/22/98 7:14a.m.
				
				
				
				Post a New Response
				
				
				
				Your Name:
				E-Mail Address:
				Subject:
				Message:
				
				If you'd like to include a link to another page with your message,please provide both the URL address and the title of the page:
				Optional Link URL:
				Optional Link Title:
				If you'd like to include an image (picture) with your message,please provide the URL address of the image file:
				Optional Image URL:
				If you'd like e-mail notification of responses, please check this box: 
				 
				The MFC Discussion Board is maintained with WebBBS 2.24.
				
							

相关资源