473,385 Members | 1,562 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,385 software developers and data experts.

Using a dialog resource as a window (API)

121 100+
Hi. I'm trying to develop an MDI that will open up "documents" that are dialog boxes that I have defined in a resource file.

However, when I select "open document" from my menu, I get a white window instead of the dialog box that I had hoped would appear.

Could somebody give me some hints as to where and how this dialog box is supposed to be created? Right now, in FrameWndProc() I use CreateWindow() when FrameWndProc receives a WM_CREATE, then, when FrameWndProc() receives a NEWDOCUMENT message, I use CreateDialog() to create the dialog.

Thanks in advance for your help.
Mar 10 '08 #1
2 1851
Studlyami
464 Expert 256MB
Can i see the code surrounding the NEWDOCUMENT message (the code in which you actually create the Dialog). In your dialog code did you specify the Resource ID enum { IDD = <ResourceID>}; or did you pass in the Resource ID during the CreateDialog call?
Mar 10 '08 #2
Sick0Fant
121 100+
Actually, I figured it out. The resource file I had in the dll I was using was just a blank dialog. o_0

So, that's why it was coming up blank. lol
Mar 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Danny Pressley | last post by:
Hey All, After a doc/view/frame is created and initialized, is there a way from within the frame class code (CMyChildFrame::OnUpdateFrameMenu()) to get the resource ID (nIDResource =...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
5
by: Chris | last post by:
Hi, I'm currently developing an application capable of loading dll's dynamically. The dll's will primarily be developed in C#, but there are old legacy dll's that must be migrated from VC++ 6.0...
8
by: Dennis C. Drumm | last post by:
I have ordered the book .NET Framework Solutions, In Search of the Lost Win32 API by John Paul Meuller which I think will help answer some of my questions I have regarding making custom...
1
by: Sonu | last post by:
Hello, I have a multilingual application, to which I am adding Russian. The prolem is that all the dialog boxes & Menus are showing junk characters instead of Cyrillics!! while my window contents...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
4
by: Steve | last post by:
Hi guys, You know how annoying it is when Visual Studio keeps asking you for a username and password to access TFS? I figured it would be easy to write a little System Tray utility that could...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.