Click here to Skip to main content
15,949,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 11:45
Member 296547126-May-11 11:45 
GeneralRe: [win32]Draw on a background bitmap Pin
Mark Salsbery26-May-11 11:45
Mark Salsbery26-May-11 11:45 
GeneralRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 11:47
Member 296547126-May-11 11:47 
GeneralRe: [win32]Draw on a background bitmap Pin
Mark Salsbery26-May-11 11:54
Mark Salsbery26-May-11 11:54 
GeneralRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 12:07
Member 296547126-May-11 12:07 
GeneralRe: [win32]Draw on a background bitmap Pin
Mark Salsbery26-May-11 12:11
Mark Salsbery26-May-11 12:11 
AnswerRe: [win32]Draw on a background bitmap [modified] Pin
Mark Salsbery26-May-11 13:57
Mark Salsbery26-May-11 13:57 
AnswerRe: [win32]Draw on a background bitmap Pin
bob1697228-May-11 18:59
bob1697228-May-11 18:59 
It almost sounds like your asking how to rubberband a line. If not, ignore my comments but if you are looking to have the bitmap drawn in your WM_PAINT handler and you want to stretch a line from some starting point to where the mouse cursor is, this is normally referred to as "rubberbanding".

Here's an old post of mine describing how to rubberband a line (btw, the idea is basically the same for a rectangle). Rubberbanding Lines[^]

NOTE: One you commit to the line being at some location permanently, you would need to keep track of that object and also draw it in your WM_PAINT handler but only after you no longer want to rubberband it. I reference the book by Ivor Horton which is truly a must have if your going to pursue a drawing project as he basically builds one in the second half of the book.

Also, this is all using MFC but the concepts can be easily adjusted to WIN32.
QuestionUsing streams Pin
Berlus26-May-11 2:40
Berlus26-May-11 2:40 
QuestionRe: Using streams Pin
David Crow26-May-11 2:49
David Crow26-May-11 2:49 
AnswerRe: Using streams [modified] Pin
Stefan_Lang26-May-11 3:01
Stefan_Lang26-May-11 3:01 
GeneralRe: Using streams Pin
Berlus26-May-11 10:05
Berlus26-May-11 10:05 
GeneralRe: Using streams Pin
Stefan_Lang26-May-11 21:14
Stefan_Lang26-May-11 21:14 
QuestionProblem opening URL Pin
pix_programmer26-May-11 1:44
pix_programmer26-May-11 1:44 
AnswerRe: Problem opening URL Pin
Richard MacCutchan26-May-11 1:53
mveRichard MacCutchan26-May-11 1:53 
GeneralRe: Problem opening URL Pin
pix_programmer26-May-11 1:58
pix_programmer26-May-11 1:58 
GeneralRe: Problem opening URL Pin
Richard MacCutchan26-May-11 2:59
mveRichard MacCutchan26-May-11 2:59 
GeneralRe: Problem opening URL [modified] Pin
pix_programmer26-May-11 3:20
pix_programmer26-May-11 3:20 
GeneralRe: Problem opening URL Pin
Richard MacCutchan26-May-11 3:32
mveRichard MacCutchan26-May-11 3:32 
AnswerRe: Problem opening URL Pin
Niklas L26-May-11 4:49
Niklas L26-May-11 4:49 
GeneralRe: Problem opening URL Pin
pix_programmer26-May-11 20:32
pix_programmer26-May-11 20:32 
GeneralRe: Problem opening URL Pin
Niklas L26-May-11 21:40
Niklas L26-May-11 21:40 
GeneralRe: Problem opening URL Pin
pix_programmer26-May-11 22:15
pix_programmer26-May-11 22:15 
QuestionRe: Problem opening URL Pin
Niklas L27-May-11 1:09
Niklas L27-May-11 1:09 
QuestionFindWindow() without giving Application windows caption Pin
manju 326-May-11 0:44
manju 326-May-11 0:44 

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.