Click here to Skip to main content
15,927,936 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Warning: no message line prompt for ID 0x8136... Pin
krmed21-Dec-04 6:38
krmed21-Dec-04 6:38 
GeneralRe: Warning: no message line prompt for ID 0x8136... Pin
Anonymous21-Dec-04 6:51
Anonymous21-Dec-04 6:51 
GeneralToolhelp32ReadProcessMemory() and ReadProcessMemory() fail Pin
TobiasLangner21-Dec-04 4:14
sussTobiasLangner21-Dec-04 4:14 
GeneralRe: Toolhelp32ReadProcessMemory() and ReadProcessMemory() fail Pin
David Crow21-Dec-04 4:42
David Crow21-Dec-04 4:42 
GeneralRe: Toolhelp32ReadProcessMemory() and ReadProcessMemory() fail Pin
Tobias Langner21-Dec-04 21:22
sussTobias Langner21-Dec-04 21:22 
GeneralWhere have the wizards gone, ActiveX Controls Pin
greekgoddj21-Dec-04 3:54
greekgoddj21-Dec-04 3:54 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
Antti Keskinen21-Dec-04 5:07
Antti Keskinen21-Dec-04 5:07 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
greekgoddj22-Dec-04 4:42
greekgoddj22-Dec-04 4:42 
Thanks!

I have gone ahead and started moving my MFC based ActiveX Control projects to ATL ActiveX projects with ATL controls supporting MFC.

So far so good, however i do have the following problem with using ATL.

In the MFC only version I was calling
[code]
Invalidate()
[/code]
everytime there were changes made to values that required for the display to be redrawn. Calling the same function in the ATL version of the ActiveX Control, gives me an assertion message.

The part of the code the causes this message is
[code]
BOOL Invalidate(BOOL bErase = TRUE) throw()
{
ATLASSERT(::IsWindow(m_hWnd));
return ::InvalidateRect(m_hWnd, NULL, bErase);
}
[/code]


I have not worked with ATL before. Has anybody come accross this before, and how does one tell the ActiveX control that it needs to update the display/graphics?

Thanks in advance!
Aristotel Cool | :cool:
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
greekgoddj22-Dec-04 5:03
greekgoddj22-Dec-04 5:03 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
Antti Keskinen22-Dec-04 5:46
Antti Keskinen22-Dec-04 5:46 
GeneralVisual C++ read autocad(dxf) Pin
yangxjn21-Dec-04 3:49
yangxjn21-Dec-04 3:49 
GeneralRe: Visual C++ read autocad(dxf) Pin
David Crow21-Dec-04 4:44
David Crow21-Dec-04 4:44 
Questionserial port buffer full? Pin
Nik0n20-Dec-04 23:56
Nik0n20-Dec-04 23:56 
AnswerRe: serial port buffer full? Pin
Trollslayer21-Dec-04 2:06
mentorTrollslayer21-Dec-04 2:06 
GeneralRe: serial port buffer full? Pin
Nik0n21-Dec-04 2:25
Nik0n21-Dec-04 2:25 
QuestionTransparent Label ? Pin
pc_dev20-Dec-04 23:13
pc_dev20-Dec-04 23:13 
GeneralUpload picture Pin
henryzal20-Dec-04 22:25
susshenryzal20-Dec-04 22:25 
GeneralRe: webservice Pin
Antti Keskinen20-Dec-04 22:17
Antti Keskinen20-Dec-04 22:17 
GeneralDynamic Crystal report viewer control Pin
Rahim Rattani20-Dec-04 20:40
Rahim Rattani20-Dec-04 20:40 
GeneralRe: Dynamic Crystal report viewer control Pin
naren-vc21-Dec-04 21:57
naren-vc21-Dec-04 21:57 
Generalset cprintdialog.m_pd.hdevmode Pin
nancysangeetha20-Dec-04 20:20
nancysangeetha20-Dec-04 20:20 
GeneralRe: set cprintdialog.m_pd.hdevmode Pin
David Crow21-Dec-04 2:17
David Crow21-Dec-04 2:17 
GeneralRe: set cprintdialog.m_pd.hdevmode Pin
nancysangeetha21-Dec-04 17:54
nancysangeetha21-Dec-04 17:54 
GeneralCalling a web service form MFC... Pin
anderslundsgard20-Dec-04 20:06
anderslundsgard20-Dec-04 20:06 
GeneralRe: Calling a web service form MFC... Pin
Antti Keskinen20-Dec-04 22:19
Antti Keskinen20-Dec-04 22:19 

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.