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
  Re: How to display "Hello World" in language other than English         


Author: Muhammad Farooq-i-Azam
Date: May 9, 2007 23:08

On May 9, 7:44 pm, "[Jongware]" wrote:
> "Alf P. Steinbach" wrote in messagenews:5ae4e0F2nt6bkU1@mid.individual.net...
>
>
>
>
>
>>* [Jongware]:
>>> "Muhammad Farooq-i-Azam" gmail.com> wrote in message
>>>news:1178719937.976181.33950@y5g2000hsa.googlegroups.com...
>>>> How do I display equivalent of "Hello World" in a language like Urdu,
>>>> Arabic, etc. I would like to do this using simple C language.
>
>>>> Can this [i.e. other language characters] be displayed on the command
>>>> line or console window as well?
>
>>> No. The console is restricted to plain old ASCII code pages
>
>> That is incorrect.
> ...
Show full article (2.72Kb)
no comments
  Different COMPFLAGS for different OBJS in Makefile while using nmake         


Author: Alex Vinokur
Date: May 9, 2007 21:42

I need
* OBJS1 to be compiled with COMPFLAGS1 only,
* OBJS2 to be compiled with COMPFLAGS2 only.

This Makefile works fine with UNIX make but nmake detects errors

--- Makefile ---
CC = gcc
LD = $(CC)
RM = rm
COMPFLAGS1 = -I.
COMPFLAGS2 = -I..
CFLAGS =

TARGET = target.exe

OBJS1 = \
foo1.o \
foo2.o

OBJS2 = \
bar1.o \
bar2.o
Show full article (0.97Kb)
no comments
  prevent window size changing         


Author: Sue
Date: May 9, 2007 19:17

Hi,

I want to prevent user from resizing the window if the window size not
in the range. The following is my code, I can see the message box. But
if I remove the messagebox and run, then when I try to resize the
window by dragging the border, it allow me to resize, the window
become bigger with some empty space fill in the enlarged part. Any
ideas? Thanks.

LRESULT CMyWnd::OnWindowPosChanging(UINT uMsg, WPARAM wParam, LPARAM
lParam, BOOL& bHandled)
{
// TODO: Add your message handler code here and/or call default
WINDOWPOS* pWndPos = (WINDOWPOS*)lParam;

//don't resize if window size not within range
if( pWndPos->cx < m_minWd || pWndPos->cx > m_maxWd
|| pWndPos->cy < m_minHt || pWndPos->cy > m_maxHt ) {
pWndPos->flags |= SWP_NOSIZE;
//::MessageBox(NULL, _T("here"), _T("here"), MB_OK);
}
Show full article (0.89Kb)
1 Comment
  Re: Newbie question         


Author: aliostad
Date: May 9, 2007 16:49

Sorry again, when I changed the setting to MultiByte from Unicode it
compiled. What does it mean? Why cant I compile it with unicode
settings?
no comments
  Newbie question         


Author: aliostad
Date: May 9, 2007 16:38

Hi I am trying - trying hard! - to use CxImage to load an image. I
have added include files and also added the cximage.lib to linker
aditional dependencies and all paths are fine - I have double and
triple checked them.

Everything compiles except when I try to use constructor with a file
name or create an instance and then use Load to load an image file. My
code like this:

CxImage img(_T("c:\\a.jpg"),CXIMAGE_FORMAT_JPG);

or

CxImage img;
img.Load(_T("c:\\a.jpg"),CXIMAGE_FORMAT_JPG);

Comes back with this link error:

Error 2 error LNK2019: unresolved external symbol "public: __thiscall
CxImage::CxImage(wchar_t const *,unsigned long)" (??
0CxImage@@QAE@PB_WK@Z) referenced in function "public: void __thiscall
CFourierTranTestDlg::OnSize(unsigned int,int,int)" (?
OnSize@CFourierTranTestDlg@@QAEXIHH@Z) FourierTranTestDlg.obj

I am really baffled. Could you please help?

Many thanks in advance
1 Comment
  Re: Shortcut menu         


Author: gw7rib
Date: May 9, 2007 14:18

On 9 May, 00:18, David Lowndes wrote:
>>When I press (or rather, when I release) the right mouse button some
>>rectangles appear on the screen, but they don't look very much like
>>the menu I was expecting,
>>...
>>if ((hmenuTrackPopup = LoadMenu(hInst, menuname)) == NULL)
>> return;
>
> Paul,
>
> Try adding this:
>
> HMENU hPop = GetSubMenu( hmenuTrackPopup, 0 );
>
> and use that popup menu subsequently with the TPM api.
>
> Dave
Show full article (1.08Kb)
no comments
  message propagation in win32?         


Author: kilik3000
Date: May 9, 2007 08:05

How does win32 message propagation work?
>From playing with spy++ and winspector I think I get the concept that
there is hierarchy to window handles (parent/child etc). Everything
is a window.

What I don't understand is how a message either gets to or doesn't get
to a child.

Let's say there is a mouse move message sent by windows to my
application b/c I move the mouse. What is the progression from there?

So if we say I mouse move over a button on my form...how does it go
from windows to the form to the button and then result in say a
highlight effect on the button?

Any insight will be greatly appreciated.

-Thx
1 Comment
  Re: Listbox and problem with drawing glyphs         


Author: hconnell
Date: May 9, 2007 08:03

I have now changed the source code to Not to use BitBlt but use
ImageList_Draw instead with a set of
stock images - it now works a treat! I'll use ImageList_Draw in future
for this kind of work - thanks for your help again.
no comments
  LockWorkStation and ExitWindowsEx from a service         


Author: Igor.Jovanovski
Date: May 9, 2007 07:52

We have a Credential Provider that allows a proprietery logon to
Vista. We would like to have monitoring on the smart card so that when
the user removes the card, the system could lock, log off, go to stand
by, hibernate or shut down.
Microsoft is doing that (for locking and log off only) with a service
that needs to be started on each client system.
For the purpose of that we developed a service of our own that will
monitor the smart card for removal and will get the reader name to be
monitored from the credential provider.
Now it is possible to put the system to stand by, hibernate or to shut
it down but the calls for locking:

bLocked = LockWorkStation();

and for log off:
bLogOff = ExitWindowsEx(EWX_LOGOFF | EWX_FORCE, 0);
Show full article (1.89Kb)
3 Comments
  Re: How to display "Hello World" in language other than English         


Author: [Jongware]
Date: May 9, 2007 07:44

"Alf P. Steinbach" wrote in message
news:5ae4e0F2nt6bkU1@mid.individual.net...
>* [Jongware]:
>> "Muhammad Farooq-i-Azam" gmail.com> wrote in message
>> news:1178719937.976181.33950@y5g2000hsa.googlegroups.com...
>>> How do I display equivalent of "Hello World" in a language like Urdu,
>>> Arabic, etc. I would like to do this using simple C language.
>>>
>>> Can this [i.e. other language characters] be displayed on the command
>>> line or console window as well?
>>
>> No. The console is restricted to plain old ASCII code pages
>
> That is incorrect.
>
>
>>, and AFAIK there are no code pages with Arabic.
>
> That is incorrect, but you noted that yourself below.
> ...
Show full article (2.05Kb)
no comments
1 2