473,379 Members | 1,191 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

BS_DEFPUSHBUTTON doesn't work inside ProperyPage !?

I have a Combobox and a DefPushButton in a PropertyPage as form (a
main window; not modal dialog)

Pressing RETURN in the Combobox or any Editfield in the form doesn't
issue a WM_COMMAND/OnOK

(When running the dialogtemplate as normal dialog it works.)

I also made a extra invitation by DM_SETDEFID :

self.SendMessage(wc.DM_SETDEFID, 303, 0)

- it still won't work. I'm also not able to catch the return key
(WM_KEYDOWN, WM_CHAR) at all inside the combobox control or the page,
but I can catch all other keys. Playing with DLGC_WANTALLKEYS also
doesn't help to get the VK_RETURN in any case. Whats going with
[RETURN] in a non-modal sub-prop-page form ? What can I do?

Robert

(I use Pythonwin on top of MFC; it should not matter.)
Jul 18 '05 #1
1 2239
Robert wrote:
| I have a Combobox and a DefPushButton in a PropertyPage as form (a
| main window; not modal dialog)
|
| Pressing RETURN in the Combobox or any Editfield in the form doesn't
| issue a WM_COMMAND/OnOK
|
| (When running the dialogtemplate as normal dialog it works.)
|
| I also made a extra invitation by DM_SETDEFID :
|
| self.SendMessage(wc.DM_SETDEFID, 303, 0)
|
| - it still won't work. I'm also not able to catch the return key
| (WM_KEYDOWN, WM_CHAR) at all inside the combobox control or the page,
| but I can catch all other keys. Playing with DLGC_WANTALLKEYS also
| doesn't help to get the VK_RETURN in any case. Whats going with
| [RETURN] in a non-modal sub-prop-page form ? What can I do?

You have to have SendMessage(PSM_ISDIALOGMESSAGE) or
PropSheet_IsDialogMessage in the main message loop (which is
equivalent of IsDialogMessage for modeless dialogs).

Simpler still, since your property sheet is the main window, is there
any (very special) reason you did not make it modal?

--
Jugoslav
___________
www.geocities.com/jdujic

Please reply to the newsgroup.
You can find my real e-mail on my home page above.

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Thompson | last post by:
When I put a <div ...> inside a <table> specification, functionality is not there. When I put the <table> inside the <div> everything works. Why is that?
3
by: niconedz | last post by:
Hi The following code works fine in IE but not Firefox. It's a little script that zooms an image and resizes the window to fit. Can anybody tell me what's wrong? Thanks Nico == btw.....
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
0
by: Sam | last post by:
Hello ! I would like to have a dialog box that pops up when I click a button. This works OK : I create a thread using a class derivated from CWinThread, and the thread creates a dlgObject...
24
by: Dennis | last post by:
I'm trying to use FindCrontrol and it will not work. Here is the code: Dim DisplayPanel As Panel DisplayPanel = CType(FindControl("pnlName"), Panel) No matter how I do it - I've tried...
2
by: Nobody | last post by:
I have an aspx page where I have a repeater control that repeats a asp:LinkButton. When I click on one of the links, I get a post back, and the page flashes. A friend told me to look into ATLAS/AJAX,...
8
by: Radu | last post by:
Hi. I have an ASP control on my page: <asp:Calendar ID="calStart" ................ Etc </asp:Calendar> and I have a Custom Validator defined as <asp:CustomValidator
14
by: raylopez99 | last post by:
KeyDown won't work KeyPress fails KeyDown not seen inspired by a poster here:http://tinyurl.com/62d97l I found some interesting stuff, which I reproduce below for newbies like me. The main...
1
by: JavaJon | last post by:
Hello, I'm Jon. I've recently picked up Java after using a "gimmick" programming language called GML ( Game Maker Language ). I've read a lot of tutorials and even a Java for Dummies *.pdf book....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.