Click here to Skip to main content
16,012,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWhile using DAO with VC++ or VB..... Pin
6-Dec-00 5:50
suss6-Dec-00 5:50 
GeneralRe: While using DAO with VC++ or VB..... Pin
Chris Meech6-Dec-00 6:39
Chris Meech6-Dec-00 6:39 
GeneralCall a function In MainFrame.cpp from NameView.cpp Pin
6-Dec-00 5:48
suss6-Dec-00 5:48 
GeneralRe: Call a function In MainFrame.cpp from NameView.cpp Pin
Christian Graus6-Dec-00 9:36
protectorChristian Graus6-Dec-00 9:36 
GeneralGetRandomRgn API has no definition in wingdi.h Pin
6-Dec-00 4:24
suss6-Dec-00 4:24 
GeneralRe: GetRandomRgn API has no definition in wingdi.h Pin
Michael Dunn6-Dec-00 12:36
sitebuilderMichael Dunn6-Dec-00 12:36 
GeneralRe: GetRandomRgn API has no definition in wingdi.h Pin
6-Dec-00 22:12
suss6-Dec-00 22:12 
GeneralPb with Rectangle API under Windows 2000 Pin
6-Dec-00 4:10
suss6-Dec-00 4:10 
Hi !
I have a problem with the draw of rectangle API under Windows 2000 (same pb with Polygon).
The problem is that the rectangle draws outside the window in which I do the draw. I've done a little example to show simply the pb.
I have a view :
void CMyView::OnDraw(CDC *pDC)
{
pDC->Rectangle(100, 100, 300, 200);
}

void CMyView::OnLButtonDown(...)
{
CView::OnLButtonDown(...);

Invalidate(); // To send a draw...
}

When I click in my view whereas the rectangle is not completly visible (width of view < 300 or height < 200) the rectangle draws outside my view ! This phenomenon appears only if I click IN the rectangle area ; elsewhere, It works fine. If I simulate a rectangle with LineTo, it works fine too.
I have the pb ONLY under Win 2000 (not with NT 4.0 neither 95/98). I work with VC++ 6.0 SP3.
Thanks for any help...

Emmanuel Derriey.
GeneralSystem tray icon Pin
Amol Pargaonkar5-Dec-00 22:39
Amol Pargaonkar5-Dec-00 22:39 
GeneralNNTP server Pin
5-Dec-00 21:16
suss5-Dec-00 21:16 
GeneralPartial Specialisation Pin
5-Dec-00 20:17
suss5-Dec-00 20:17 
GeneralRe: Partial Specialisation Pin
Erik Funkenbusch6-Dec-00 10:53
Erik Funkenbusch6-Dec-00 10:53 
GeneralRe: Partial Specialisation Pin
Leo Davidson7-Dec-00 9:17
Leo Davidson7-Dec-00 9:17 
GeneralRe: Partial Specialisation Pin
Erik Funkenbusch7-Dec-00 9:30
Erik Funkenbusch7-Dec-00 9:30 
GeneralRe: Partial Specialisation Pin
Jonathan Gilligan7-Dec-00 21:30
Jonathan Gilligan7-Dec-00 21:30 
GeneralRe: Partial Specialisation (again) Pin
Erik Funkenbusch8-Dec-00 10:28
Erik Funkenbusch8-Dec-00 10:28 
GeneralODBC API stuff Pin
Steve Driessens5-Dec-00 16:34
Steve Driessens5-Dec-00 16:34 
GeneralRe: ODBC API stuff Pin
6-Dec-00 5:12
suss6-Dec-00 5:12 
GeneralRe: ODBC API stuff Pin
Steve Driessens6-Dec-00 17:22
Steve Driessens6-Dec-00 17:22 
GeneralMFC ACctiveX Pin
5-Dec-00 14:56
suss5-Dec-00 14:56 
GeneralRe: MFC ACctiveX Pin
Erik Funkenbusch6-Dec-00 10:56
Erik Funkenbusch6-Dec-00 10:56 
GeneralRe: MFC ACctiveX Pin
7-Dec-00 12:00
suss7-Dec-00 12:00 
GeneralNetbios Pin
Den5-Dec-00 10:50
Den5-Dec-00 10:50 
GeneralRe: Netbios Pin
Christian Graus5-Dec-00 13:59
protectorChristian Graus5-Dec-00 13:59 
GeneralRe: Netbios Pin
Den8-Dec-00 3:06
Den8-Dec-00 3:06 

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.