|
|
Up |
|
|
  |
Author: crleblanccrleblanc
Date: May 13, 2007 20:46
Hi,
I'm porting some X windows software written mainly in C to Cygwin (we
would go for a cross platform gui toolkit like Qt, but this is a quick
way to get it working on Windows while keeping a single codebase).
Its nearly complete, but I want to use native win32 style open file
dialogs to make it a lot easier for the user.
Cygwin gives me access to the win32 api, and I've been able to bring
up an openfile dialog, but it always appears behind the X-windows
applications that are running (quite annoying).
I'm looking for a way to keep the open file dialog in the foreground.
What is the best way to do this? SetWindowPos(), SetActiveWindow(),
SetForegroundWindow()? All of these need a handle, how do I obtain a
handle for this dialog?
Thanks in advance for any help. Sorry if this is a basic question,
I'm very new to the win32 api (much more of a Python guy).
Heres the relevant C code that brings up the dialog (in a seperate
function):
|
| Show full article (1.43Kb) |
|
| |
1 Comment |
|
  |
Author: DaveDave
Date: May 13, 2007 18:19
The Create_new_console flag was EXACTLY what I needed. Works
perfectly. Thanks
On May 13, 6:00 am, "Barry" nullhighstream.net> wrote:
>>I have two console applications. I want one to launch another one so
>> that the new process launches in its own command window. To date,
>> I've only started new processes with the 'CreateProcess' call, but
>> that always seems to launch the new process in the same command window
>> as the existing one. How can I get a new one to launch?
>
>> Thanks!
>
> I haven't actually tried it but it looks like you set the
> CREATE_NEW_CONSOLE flag in the dwCreationFlags
> parameter of the CreateProcess() call.
|
| |
|
| |
no comments
|
|
  |
Author: saran.jegansaran.jegan
Date: May 12, 2007 20:06
> I have never done any such thing, so I can't help more. I hope someone
> else will take over. But you will be more likely to get an answer you
> can actually use if you let us know what computer language and/or
> development environment you are using.
>
> On 10 May 2007 02:50:20 -0700, saran.je...@ gmail.com wrote:
>
>
>
>>> On 9 May 2007 05:24:46 -0700, saran.je...@ gmail.com wrote:
>
>>>>hello,
>
>>>> am in need to access a application when i press an external
>>>>keypad (which i had connected to the serial port of the system and am
>>>>recieving a value at one press of the key,i can open the port and read
>>>>the value),what am need to clarify is whether there is any function
>>>>exists to open the application for each press of that external key ,if ...
|
| Show full article (3.24Kb) |
|
no comments
|
|
  |
Author: DaveDave
Date: May 12, 2007 15:22
I have two console applications. I want one to launch another one so
that the new process launches in its own command window. To date,
I've only started new processes with the 'CreateProcess' call, but
that always seems to launch the new process in the same command window
as the existing one. How can I get a new one to launch?
Thanks!
|
| |
|
2 Comments |
|
  |
Author: mike3mike3
Date: May 12, 2007 13:19
Hi.
Forgive me if this sounds really stupid, but how would one make this
work? See, what the program does is to create a "signaling" NaN (not-a-
number) invalid floating point value, and then to create an...
|
| Show full article (1.69Kb) |
|
1 Comment |
|
  |
Author: padapada
Date: May 11, 2007 13:57
Hello,
I was wondering what Windows function, I can use to delete a device
drive-letter. I'm writing my application in VC++ environment.
Thanks
Pada
|
| |
|
2 Comments |
|
  |
Author: Larry LindstromLarry Lindstrom
Date: May 11, 2007 13:56
Michael K. O'Neill wrote:
> "Larry Lindstrom" aracnet.com> wrote in message
< Snip >
> General advice on custom draw is difficult, since it's very specfically
> different for each different control.
>
> You seem to be doing everything that's needed, based on articles like
> http://www...
|
| Show full article (1.44Kb) |
|
no comments
|
|
  |
Author: newsnews
Date: May 11, 2007 11:59
On May 11, 5:46 pm, Larry Lindstrom aracnet.com> wrote:
> Now that I'm building an MDI application, and the MDI
> clients have modeless children of their own, these children
> being laid out with the Resource editor, the tab key is
> again ignored.
The tab key being ignored is often a symptom of not calling
IsDialogMessage in your message loop. That's definitely where I would
look first, rather than any possible interaction with MDI.
Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
|
| |
|
no comments
|
|
  |
Author: Michael K. O'NeillMichael K. O'Neill
Date: May 11, 2007 11:08
"Larry Lindstrom" aracnet.com> wrote in message
news:ApidnYJXhKECB9nbnZ2dnUVZ_oqmnZ2d@comcast.com...
> Michael K. O'Neill wrote:
>> "Larry Lindstrom" aracnet.com> wrote in message
>> news:TPGdnbBO5vKAmd7bnZ2dnUVZ_qSrnZ2d@comcast.com...
>>> < snip >
>>>
>>> case CDDS_ITEMPREPAINT:
>>>
>>> if(custom_draw_nmhdr_ptr->uItemState ==
>>> (CDIS_SELECTED | CDIS_FOCUS))
>>>
>>
>> I don't think you should be testing for equality, since the uItemState
can
>> be an OR'd value of many different states.
>>
>> Instead, use a bitwise AND (&) to tease out the bits you're interested
in,
>> and then test for equality, maybe something like this: ...
|
| Show full article (5.87Kb) |
|
no comments
|
|
  |
|
|
  |
Author: ali.wajidali.wajid
Date: May 11, 2007 10:40
Hi,
Is it known to any one that how could we open a .lic file for some
changing. I would appreciate your soon response.
Thanks.
Wajid
|
| |
|
1 Comment |
|
|
|
|
|
|