comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2007
motuwethfrsasuw
 123456 18
78910111213 19
14151617181920 20
21222324252627 21
28293031    22
2007
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  setting focus of open file dialog from an X window app         


Author: crleblanc
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
  Re: How do I Create a new process (a console app) so that it opens in a new window?         


Author: Dave
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:
> "Dave" gmail.com> wrote in message
>
> news:1179008561.554732.129570@o5g2000hsb.googlegroups.com...
>
>>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
  Re: controlling a application throgh external key         


Author: saran.jegan
Date: May 12, 2007 20:06

On May 11, 12:07 am, r_z_aret@pen_fact.com wrote:
> 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 May 10, 12:18 am, r_z_aret@pen_fact.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
  How do I Create a new process (a console app) so that it opens in a new window?         


Author: Dave
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
  Catching NaN exception?         


Author: mike3
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
  Deleting drive letter programicaly         


Author: pada
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
  Re: TreeView Custom Draw - How is uItemState Set?         


Author: Larry 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
  Re: Please Help Me Get Hooks Working.         


Author: news
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
  Re: TreeView Custom Draw - How is uItemState Set?         


Author: Michael 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
  opening .lic files         


Author: ali.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
1 2 3 4 5 6 7