Click here to Skip to main content
16,018,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: information tags from JPGs Pin
David Crow12-Sep-03 9:55
David Crow12-Sep-03 9:55 
GeneralRe: information tags from JPGs Pin
JWood13-Sep-03 4:53
JWood13-Sep-03 4:53 
GeneralView Scaling Pin
Gary Kirkham12-Sep-03 8:25
Gary Kirkham12-Sep-03 8:25 
GeneralRe: View Scaling Pin
Joaquín M López Muñoz12-Sep-03 11:59
Joaquín M López Muñoz12-Sep-03 11:59 
GeneralRe: View Scaling Pin
Gary Kirkham12-Sep-03 18:21
Gary Kirkham12-Sep-03 18:21 
GeneralRe: View Scaling Pin
JWood13-Sep-03 5:09
JWood13-Sep-03 5:09 
GeneralUrgent! how to create a configurable dialog box by mouse click Pin
AceZhou12-Sep-03 7:32
AceZhou12-Sep-03 7:32 
GeneralRe: Urgent! how to create a configurable dialog box by mouse click Pin
Joaquín M López Muñoz12-Sep-03 8:38
Joaquín M López Muñoz12-Sep-03 8:38 
1. in the WinProc function, inside the WM_LBUTTONDOWN message section. I use "DialogBox()" function call to generate the dialog box. I have a resource file built by using VC++ 6.0. Is it right way? Do I need to use "GetModuleHandle" function call first to generate hInstance before "DialogBox"? But it doesn't work. When I click the mouse left button. Nothing comes up.

Post the code of your call to DialogBox and someone will probably be able to determine what's happening.

2 in most of tutorials I read, diglog box generation highly depend on the resource file and is invoked by commands, processed in WM_COMMAND section. Are there any other ways to create and configure the dialog box? For example, by mouse clicking, I can have the coordinates. Now I want to create a dialog box, inside which there are a check box that use the coordinates as the caption name.

Strictly speaking, dialogs can be built in run-time withouht being dependent on any template, but this is really difficult and not necessary for what you want. Store the coordinates somewhere (some global variable, whatever) and, when processing the WM_INITDIALOG of your popped up dialog, get the handle of the checkbox you're interested in (see GetDlgItem) and change its text with SetWindowText. Good luck.



Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Urgent! how to create a configurable dialog box by mouse click Pin
AceZhou12-Sep-03 9:08
AceZhou12-Sep-03 9:08 
GeneralRe: Urgent! how to create a configurable dialog box by mouse click <b>[corrected]</b> Pin
Joaquín M López Muñoz12-Sep-03 9:24
Joaquín M López Muñoz12-Sep-03 9:24 
GeneralRe: Urgent! how to create a configurable dialog box by mouse click &lt;b&gt;[corrected]&lt;/b&gt; Pin
AceZhou12-Sep-03 9:38
AceZhou12-Sep-03 9:38 
QuestionCan anybody tell me how to make the columns of a LIST style ListCtrl closer? Pin
zzone12-Sep-03 5:23
zzone12-Sep-03 5:23 
AnswerRe: Can anybody tell me how to make the columns of a LIST style ListCtrl closer? Pin
David Crow12-Sep-03 7:19
David Crow12-Sep-03 7:19 
Generalmouse event on dialog caption Pin
s o v a n n12-Sep-03 4:18
s o v a n n12-Sep-03 4:18 
GeneralRe: mouse event on dialog caption Pin
Arjan Schouten12-Sep-03 4:56
Arjan Schouten12-Sep-03 4:56 
GeneralFlicker problem with ActiveX in CFormView Pin
sanskypotov12-Sep-03 3:41
sanskypotov12-Sep-03 3:41 
GeneralRe: Flicker problem with ActiveX in CFormView Pin
Ernest Laurentin12-Sep-03 6:01
Ernest Laurentin12-Sep-03 6:01 
QuestionHow to create a thread pool? Pin
chocm12-Sep-03 3:32
chocm12-Sep-03 3:32 
AnswerRe: How to create a thread pool? Pin
John M. Drescher12-Sep-03 4:28
John M. Drescher12-Sep-03 4:28 
QuestionHelp! Really Nobody knows? Pin
FredLiu12-Sep-03 3:28
FredLiu12-Sep-03 3:28 
AnswerRe: Help! Really Nobody knows? Pin
Scozturk12-Sep-03 9:18
professionalScozturk12-Sep-03 9:18 
GeneralRe: Help! Really Nobody knows? Pin
Scozturk12-Sep-03 9:19
professionalScozturk12-Sep-03 9:19 
GeneralRe: Help! Really Nobody knows? Pin
FredLiu14-Sep-03 20:59
FredLiu14-Sep-03 20:59 
Generalinternet explorer plugin Pin
player112-Sep-03 3:26
player112-Sep-03 3:26 
GeneralRe: internet explorer plugin Pin
David Crow12-Sep-03 4:23
David Crow12-Sep-03 4:23 

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.