Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQT and Intellisense Pin
Sitaram Sukumar15-May-05 19:40
Sitaram Sukumar15-May-05 19:40 
GeneralRe: QT and Intellisense Pin
David Crow16-May-05 2:35
David Crow16-May-05 2:35 
GeneralRe: QT and Intellisense Pin
ucc80116-May-05 20:42
ucc80116-May-05 20:42 
Generalquestion regarding CListCtrl..... Pin
namaskaaram15-May-05 18:59
namaskaaram15-May-05 18:59 
GeneralRe: question regarding CListCtrl..... Pin
Jack Puppy16-May-05 2:45
Jack Puppy16-May-05 2:45 
GeneralRe: question regarding CListCtrl..... Pin
namaskaaram16-May-05 3:38
namaskaaram16-May-05 3:38 
GeneralRe: question regarding CListCtrl..... Pin
David Crow16-May-05 2:48
David Crow16-May-05 2:48 
GeneralForming Grid using Rectangles Pin
jinbabaj15-May-05 18:15
jinbabaj15-May-05 18:15 
Hi Folks!
I have got a problem hope you people will definately help me..
The problem is i want to display a Grid on screen (MFC App Wizard Application), i did the following
i.e. Draw severel Rectangles to
accomplish the grid like look.
The rectangls are drawn with white 'in' and black 'outer boundry'
[code]

void CSimulationView::OnDraw(CDC* pDC)
{

//Display Squares of width and height 40x40
int x1 = 0 ;
int y1= 0;


for(int i=0; i < 12; i++ )
{
for(int j=0; j < 19; j++ )
{


pDC->Rectangle(x1,y1,x1+40,y1+40);
x1+=40;
}
x1=0;
y1+=40;
}


}
[/code]



The question is how i can change the color of, in of the rectangle and outer boundry(say in color is red and outer boundry color is cyan).

One thing more how to fix the size of my display window.i.e. i want my display window to be 700 pixels wide and 500 pixel high,i.e. user can only minimize or see the window in (700,500) size, he can not resize the display windows..

Hope you prople will sort out my problem..

Reagards, Jinbaba
GeneralRe: Forming Grid using Rectangles Pin
Ryan Binns15-May-05 18:28
Ryan Binns15-May-05 18:28 
GeneralRe: Forming Grid using Rectangles Pin
Blake Miller16-May-05 8:35
Blake Miller16-May-05 8:35 
GeneralRe: Forming Grid using Rectangles Pin
ucc80116-May-05 20:46
ucc80116-May-05 20:46 
GeneralQuestion: How can I create and show the MSOFFICE files from stream Pin
figer15-May-05 16:48
figer15-May-05 16:48 
GeneralHooking RegisterClassEx and dll question Pin
Kuniva15-May-05 12:45
Kuniva15-May-05 12:45 
GeneralRe: Hooking RegisterClassEx and dll question Pin
Ryan Binns15-May-05 18:43
Ryan Binns15-May-05 18:43 
GeneralRe: Hooking RegisterClassEx and dll question Pin
Kuniva16-May-05 3:03
Kuniva16-May-05 3:03 
GeneralRe: Hooking RegisterClassEx and dll question Pin
Ryan Binns17-May-05 1:19
Ryan Binns17-May-05 1:19 
GeneralAsian scripts and DrawText(DT_CALCRECT) Pin
Jörgen Sigvardsson15-May-05 10:31
Jörgen Sigvardsson15-May-05 10:31 
GeneralRe: Asian scripts and DrawText(DT_CALCRECT) Pin
Gary R. Wheeler15-May-05 13:54
Gary R. Wheeler15-May-05 13:54 
GeneralRe: Asian scripts and DrawText(DT_CALCRECT) Pin
Anonymous15-May-05 20:11
Anonymous15-May-05 20:11 
GeneralRe: Asian scripts and DrawText(DT_CALCRECT) Pin
Chris Richardson15-May-05 17:07
Chris Richardson15-May-05 17:07 
GeneralRe: Asian scripts and DrawText(DT_CALCRECT) Pin
Anonymous15-May-05 20:12
Anonymous15-May-05 20:12 
GeneralRe: Asian scripts and DrawText(DT_CALCRECT) Pin
Ryan Binns15-May-05 18:34
Ryan Binns15-May-05 18:34 
GeneralRe: Asian scripts and DrawText(DT_CALCRECT) Pin
Anonymous15-May-05 20:13
Anonymous15-May-05 20:13 
QuestionCan VC6 and a later version reside on the same machine? Pin
WREY15-May-05 9:39
WREY15-May-05 9:39 
AnswerRe: Can VC6 and a later version reside on the same machine? Pin
Jörgen Sigvardsson15-May-05 10:33
Jörgen Sigvardsson15-May-05 10:33 

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.