comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 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
  Getting localized name of user specified folder         


Author: Bipin Mistry
Date: Jul 18, 2008 21:13

Hello all,

Q: How can I het localized name of any specific folder.
(Mainly want this for WinVista, aulthough I want it to work for
lower version as well)

eg:
char* getLocalizedName(char* UserPath){
char *LocalizedName;
.....
.....
.....
return LocalizedName;
}

Examples of input Char *, can be any from following
c:\
c:\Programe Files
c:\MyFolder
c:\MyFolder\MyFolder1\MyFolder2\MyFolder3\MyFolder4\MyFolder5
Show full article (1.18Kb)
3 Comments
  Conditional building of a dll ? a solution with the .def file ?         


Author:
Date: Jul 18, 2008 05:21

Hi everybody,

Is there a way to export or not a function from a dll, using a .def
file, using something like a C macro ?

I'd like to write something in this spirit :

LIBRARY toto BASE=0x10080000
EXPORTS

func_1
func_2

#ifdef ARM
func_3
#endif

(I use the C macro in my exemple just to explain what I need)

What i expect is to build a dll without func_3 exported if ARM is not
defined.

I didn't find anything in msdn.

Do you see any solution ?

Many thanks
10 Comments
  Scrollbar height         


Author: Piranha
Date: Jul 18, 2008 01:54

Is it possible to alter the height of the scrollbar in a window that
has WS_VSCROLL style?
The window has a height of 200px, and I´d like to reduce the scrollbar
to 150px height with 25px space above and below.
I´ve found something about setting the size of the client rect, but
for one that was for VC while I´m using plain C++, so if possible, I
need an API call or some SendMessage() and for two, reducing the
client rect of the window means I can´t paint above and below anymore,
unless I could reduce the client rect only for the scrollbar and not
for the whole window.
3 Comments