Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialog refresh Pin
Alvaro Mendez4-Feb-03 5:57
Alvaro Mendez4-Feb-03 5:57 
GeneralRe: dialog refresh Pin
Abbas_Riazi4-Feb-03 7:06
professionalAbbas_Riazi4-Feb-03 7:06 
GeneralRe: dialog refresh Pin
Alvaro Mendez4-Feb-03 8:10
Alvaro Mendez4-Feb-03 8:10 
GeneralRe: dialog refresh Pin
Anonymous4-Feb-03 21:42
Anonymous4-Feb-03 21:42 
GeneralRe: dialog refresh Pin
Abbas_Riazi5-Feb-03 0:26
professionalAbbas_Riazi5-Feb-03 0:26 
GeneralRe: dialog refresh Pin
Anonymous4-Feb-03 21:41
Anonymous4-Feb-03 21:41 
GeneralMSDN annoying prompts Pin
ed welch4-Feb-03 5:14
ed welch4-Feb-03 5:14 
Generaldraw rectangle selection Pin
jeremysay4-Feb-03 5:10
jeremysay4-Feb-03 5:10 
hello

How can i draw a rectangle selection with the mouse, like in windows explorer when we want to select folders.
i try :
CDC dc;
...
dc.Rectangle(m_ptMouse.x,m_ptMouse.y,m_ptLast.x,m_ptLast.y);


//m_ptMouse is the coordinates of mouse when the user click
//m_ptLast is the current coordinates

but i can't get a transparent rectangle.

and if i try :
dc.MoveTo(m_ptMouse.x,m_ptMouse.y);
dc.LineTo(m_ptMouse.x,m_ptLast.y);

dc.MoveTo(m_ptMouse.x,m_ptMouse.y);
dc.LineTo(m_ptLast.x,m_ptMouse.y);

dc.MoveTo(m_ptMouse.x,m_ptLast.y);
dc.LineTo(m_ptLast.x,m_ptLast.y);

dc.MoveTo(m_ptLast.x,m_ptLast.y);
dc.LineTo(m_ptLast.x,m_ptMouse.y);

i get all the intermediary rectangles.
if you know how draw a rectangle selection like in windows explorer which is transparent.
GeneralRe: draw rectangle selection Pin
Michael Dunn4-Feb-03 5:18
sitebuilderMichael Dunn4-Feb-03 5:18 
GeneralRe: draw rectangle selection Pin
jeremysay4-Feb-03 5:51
jeremysay4-Feb-03 5:51 
GeneralMFC... WM_PAINT message Pin
Mciccarone3574-Feb-03 4:48
Mciccarone3574-Feb-03 4:48 
GeneralRe: MFC... WM_PAINT message Pin
Roger Allen4-Feb-03 6:02
Roger Allen4-Feb-03 6:02 
GeneralRe: MFC... WM_PAINT message Pin
357magnum4-Feb-03 10:46
357magnum4-Feb-03 10:46 
GeneralRe: MFC... WM_PAINT message Pin
Paul M Watt4-Feb-03 20:42
mentorPaul M Watt4-Feb-03 20:42 
GeneralVisual C++ Pin
Rage4-Feb-03 4:45
professionalRage4-Feb-03 4:45 
Generalchange html help files to windows help files Pin
includeh104-Feb-03 4:25
includeh104-Feb-03 4:25 
GeneralRe: change html help files to windows help files Pin
Roger Allen4-Feb-03 6:06
Roger Allen4-Feb-03 6:06 
GeneralRe: change html help files to windows help files Pin
Iain Clarke, Warrior Programmer4-Feb-03 6:43
Iain Clarke, Warrior Programmer4-Feb-03 6:43 
GeneralMFC exe file size Pin
Anonymous4-Feb-03 4:13
Anonymous4-Feb-03 4:13 
GeneralRe: MFC exe file size Pin
RobJones4-Feb-03 4:36
RobJones4-Feb-03 4:36 
GeneralRe: MFC exe file size Pin
Anonymous4-Feb-03 4:50
Anonymous4-Feb-03 4:50 
GeneralRe: MFC exe file size Pin
Anonymous4-Feb-03 4:55
Anonymous4-Feb-03 4:55 
GeneralRe: MFC exe file size Pin
includeh104-Feb-03 5:40
includeh104-Feb-03 5:40 
GeneralRe: MFC exe file size Pin
Anonymous4-Feb-03 5:45
Anonymous4-Feb-03 5:45 
GeneralRe: MFC exe file size Pin
includeh104-Feb-03 6:55
includeh104-Feb-03 6:55 

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.