Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File I/O Pin
David Crow29-Mar-05 4:51
David Crow29-Mar-05 4:51 
Generalnetwork printing problem Pin
Sudhir Mangla28-Mar-05 21:35
professionalSudhir Mangla28-Mar-05 21:35 
GeneralRe: network printing problem Pin
DasdaDAS28-Mar-05 22:53
DasdaDAS28-Mar-05 22:53 
GeneralRe: network printing problem Pin
Sudhir Mangla29-Mar-05 2:15
professionalSudhir Mangla29-Mar-05 2:15 
QuestionHow to create CButton dynamically in MFC? Pin
xo300028-Mar-05 21:05
xo300028-Mar-05 21:05 
AnswerRe: How to create CButton dynamically in MFC? Pin
DasdaDAS28-Mar-05 23:23
DasdaDAS28-Mar-05 23:23 
GeneralRe: How to create CButton dynamically in MFC? Pin
xo300029-Mar-05 1:13
xo300029-Mar-05 1:13 
GeneralRe: How to create CButton dynamically in MFC? Pin
jhwurmbach30-Mar-05 3:56
jhwurmbach30-Mar-05 3:56 
xo3000 wrote:
Dose it possible to do?

Sure it is possible!

But you are very much on your own here, without the Wizard and the MFC macros.
MFC may good enough for your little sister, but Win32 is for real men, you know?
Roll eyes | :rolleyes:

Create the Buttons you need, and catch their BN_CLICKED notification.
That is done by overriding PreTranslateMessage and waiting for a WM_COMMAND message with a HIWORD(wParam) being BN_CLICKED.
The LOWORD(wParam) is the identifier (the last number of the CREATE-statement) and the lParam the buttons handle.
Now you have full control over the button.




"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

QuestionWininet question? Pin
mvtapia28-Mar-05 20:53
mvtapia28-Mar-05 20:53 
AnswerRe: Wininet question? Pin
ThatsAlok28-Mar-05 21:36
ThatsAlok28-Mar-05 21:36 
GeneralRe: Wininet question? Pin
mvtapia28-Mar-05 23:37
mvtapia28-Mar-05 23:37 
GeneralRe: Wininet question? Pin
ThatsAlok28-Mar-05 23:52
ThatsAlok28-Mar-05 23:52 
GeneralRe: Wininet question? Pin
mvtapia29-Mar-05 11:58
mvtapia29-Mar-05 11:58 
AnswerRe: Wininet question? Pin
Michael Dunn28-Mar-05 23:54
sitebuilderMichael Dunn28-Mar-05 23:54 
GeneralDot Matrix Printer Pin
Renjith Ramachandran28-Mar-05 19:41
Renjith Ramachandran28-Mar-05 19:41 
GeneralRe: Dot Matrix Printer Pin
Blake Miller29-Mar-05 5:52
Blake Miller29-Mar-05 5:52 
GeneralRe: Dot Matrix Printer Pin
Renjith Ramachandran29-Mar-05 7:25
Renjith Ramachandran29-Mar-05 7:25 
Generalc language Pin
Anonymous28-Mar-05 19:28
Anonymous28-Mar-05 19:28 
GeneralRe: c language Pin
ThatsAlok28-Mar-05 20:29
ThatsAlok28-Mar-05 20:29 
GeneralRe: c language Pin
Anonymous29-Mar-05 22:12
Anonymous29-Mar-05 22:12 
GeneralRe: c language Pin
Alexander M.,29-Mar-05 2:57
Alexander M.,29-Mar-05 2:57 
Generalusing CShockwaveFlash in own ActiveX Pin
AndreasTegeler28-Mar-05 19:12
AndreasTegeler28-Mar-05 19:12 
GeneralProcess and parent Pin
vikramlinux28-Mar-05 19:11
vikramlinux28-Mar-05 19:11 
GeneralRe: Process and parent Pin
DasdaDAS29-Mar-05 20:00
DasdaDAS29-Mar-05 20:00 
Generalstring vs CString problems. Pin
mlatimer28-Mar-05 19:06
mlatimer28-Mar-05 19: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.